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

Simplify metrics reporting #817

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Simplify metrics reporting #817

merged 1 commit into from
Dec 17, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.


hostDim := cwatch.Dimension("Host", b.config.InstanceID)
appDim := cwatch.Dimension("App", "courier")
Copy link
Member Author

Choose a reason for hiding this comment

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

since the namespace is Temba/Courier app doesn't make sense as a dimension.. can update mailroom to match this

s.Backend().CloudWatch().Queue(
cwatch.Datum("EventReceive", float64(secondDuration), types.StandardUnitSeconds, channelTypeDim),
)
cw.Queue(cwatch.Datum("EventReceive", float64(secondDuration), types.StandardUnitSeconds, channelTypeDim))
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure about any of these metrics... they're all measuring the overall handler time.. but if a handler produces multiple events/messages... the same data is reported multiple times.

Seems like we want a single handler latency metric? @ericnewcomer @norkans7

Copy link
Member Author

Choose a reason for hiding this comment

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

Discussed with @ericnewcomer and we're gonna try turning these into counts that are reported each minute in the backend heartbeat

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 3 lines in your changes missing coverage. Please review.

Project coverage is 74.55%. Comparing base (a9ed817) to head (7654c96).

Files with missing lines Patch % Lines
server.go 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #817      +/-   ##
==========================================
+ Coverage   74.54%   74.55%   +0.01%     
==========================================
  Files         111      111              
  Lines       13267    13250      -17     
==========================================
- Hits         9890     9879      -11     
+ Misses       2659     2653       -6     
  Partials      718      718              

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

@rowanseymour rowanseymour marked this pull request as ready for review December 17, 2024 19:29
@rowanseymour rowanseymour merged commit 68d55f9 into main Dec 17, 2024
5 checks passed
@rowanseymour rowanseymour deleted the metrics_redux branch December 17, 2024 19:29
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant