Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Python New Relic agent and instrumentation for catalog-next #372

Closed
5 tasks
adborden opened this issue Jul 29, 2020 · 1 comment
Closed
5 tasks

Python New Relic agent and instrumentation for catalog-next #372

adborden opened this issue Jul 29, 2020 · 1 comment

Comments

@adborden
Copy link
Contributor

adborden commented Jul 29, 2020

User Story

As a Data.gov operator, I want catalog-next reporting to New Relic so that I can monitor and observe performance hook into existing alerting infrastructure.

Acceptance Criteria

  • WHEN I visit the New Relic dashboard for catalog-next staging
    THEN I see catalog-next is reporting data

Details / tasks

Instructions are explained in the New Relic docs. Generally the tasks are:

  • Add newrelic python dependency to poetry/requirements
  • Configure New Relic through environment variables
  • Ensure staging is reporting as "catalog-next (staging)", production as "catalog-next", and sandbox is not reporting; similar to the existing configuration for catalog-classic
  • Update datagov-deploy to set the correct environment variables per environment

Background

Historically, New Relic has been configured incorrectly for data.gov's python applications, hooking into the apache wsgi config instead of implemented at the application level. This has a number of issues, but most importantly, since catalog-next uses gunicorn instead of apache, the New Relic agent essentially isn't configured at all.

@kimwdavidson
Copy link
Contributor

Duplicate. Closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants