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

Notification app metrics #724

Merged
merged 4 commits into from
Aug 22, 2022
Merged

Notification app metrics #724

merged 4 commits into from
Aug 22, 2022

Conversation

DavidLawes
Copy link
Contributor

What does this change?

The reliability team has provided a very useful doc about how to incorporate metrics into our notification platform.

This PR adds metrics to the notification app only:

  • notification app processing time
  • count of breaking news notifications

This PR also changes the logic for how duration is calculated: previously the duration didn't account for the Future completing so the duration looked to always be ~0ms. Now I'm seeing more realistic durations (600-1700ms).

I can see that the metrics are being pushed to cloudwatch as expected:
Screenshot 2022-08-19 at 15 06 04

How to test

I pushed to CODE, sent a couple of test notifications and checked:

  • logs
  • kibana dashboard
  • cloudwatch metrics

How can we measure success?

Given we publish these metrics I think we'll have the observability we need to monitor the notification app.

Have we considered potential risks?

We're pushing custom metrics which incurs additional cost, but I'm not using additional dimensions which hopefully controls this additional cost ($0.30 per month, $0.01 per 1,000 requests).

Copy link
Contributor

@frankie297 frankie297 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@jacobwinch jacobwinch left a comment

Choose a reason for hiding this comment

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

Great work! 👍

@DavidLawes DavidLawes merged commit 23239f8 into main Aug 22, 2022
@DavidLawes DavidLawes deleted the dlawes/notification-app-metrics branch August 22, 2022 09:42
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.

None yet

3 participants