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

add new relic monitoring #138

Merged
merged 6 commits into from
Jul 24, 2024
Merged

add new relic monitoring #138

merged 6 commits into from
Jul 24, 2024

Conversation

solomon-negusse
Copy link
Member

@solomon-negusse solomon-negusse commented Apr 26, 2024

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

No application performance monitoring

What is the new behavior?

Adds new relic APM

Does this introduce a breaking change?

  • Yes
  • No

Other information

@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.46%. Comparing base (aaa91ee) to head (2b5f986).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #138   +/-   ##
=======================================
  Coverage   79.46%   79.46%           
=======================================
  Files          56       56           
  Lines        1870     1870           
=======================================
  Hits         1486     1486           
  Misses        384      384           
Flag Coverage Δ
unittests 79.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@solomon-negusse solomon-negusse changed the base branch from dev to staging April 26, 2024 13:06
@solomon-negusse solomon-negusse changed the base branch from staging to dev April 26, 2024 13:10
@@ -4,3 +4,4 @@ tile_cache_url = "dev-tiles.globalforestwatch.org"
desired_count = 1
auto_scaling_min_capacity = 1
auto_scaling_max_capacity = 5
new_relic_license_key_arn = "arn:aws:secretsmanager:us-east-1:563860007740:secret:newrelic/license_key-lolw24"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious. We don't usually put arns directly in the terraform, right? But I guess this is OK because ARNs for secrets in the secret manager do no change over the long term? (I see that these arns are already in the terraform for the data API as well.)

Copy link
Member Author

@solomon-negusse solomon-negusse Apr 29, 2024

Choose a reason for hiding this comment

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

Yeah, the ARNs are not expected to change but I agree hard coding them isn't ideal. I have made a minor change in 7cfdbd9 where TF fetches the secret arn from aws using the name attribute that's the same across environments and not editable.

Copy link
Contributor

@danscales danscales left a comment

Choose a reason for hiding this comment

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

Looks good, nice to remove the specific ARN numbers from the terraform.

@solomon-negusse solomon-negusse merged commit b7a33df into dev Jul 24, 2024
4 of 5 checks passed
solomon-negusse added a commit that referenced this pull request Jul 25, 2024
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.

4 participants