Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[catalog][inventory] fix NR reporting #2651

Merged
merged 6 commits into from
Feb 1, 2021
Merged

[catalog][inventory] fix NR reporting #2651

merged 6 commits into from
Feb 1, 2021

Conversation

adborden
Copy link
Contributor

This fixes a bug where staging and sandbox instances are reporting to the
production APM app.

This updates the New Relic configration for APM in a consistent way so that
environment is a separate app (or falls into the "unknown" bucket).

The New Relic variables are removed from the catalog and inventory roles and
specified through the dot env file. This way the roles don't need to know about
the details of New Relic, there's a standard interface (environment variables)
to configure NR.

@adborden adborden requested a review from a team January 15, 2021 00:22
@pjsharpe07
Copy link
Contributor

Mentioning the original ticket. Leaving this so we'll update the original ticket status to reflect that we don't want to report on staging statistics.

Specify CKAN application environment variables from ansible configuration
instead of template.
Move NR env variables out to Ansible configuration instead of template. Now
catalog/inventory don't need to know anything about New Relic.
Missing some variables, make sure to set this for all environments.
Make sure to enable New Relic in production and staging. Set a default in case
it's unset.
dot env can contain secrets, limit its access.
Copy link
Contributor

@jbrown-xentity jbrown-xentity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleaned up a bunch, thanks!

@adborden adborden merged commit dcba2e6 into develop Feb 1, 2021
@adborden adborden deleted the feature/app-env branch February 1, 2021 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants