-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Specify metric name/tags via annotation #1096
Conversation
Signed-off-by: Gary Brown <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1096 +/- ##
======================================
Coverage 100% 100%
======================================
Files 140 140
Lines 6625 6621 -4
======================================
- Hits 6625 6621 -4
Continue to review full report at Codecov.
|
Signed-off-by: Gary Brown <[email protected]>
Responses metrics.Timer //used as a histogram, not necessary for GetTrace | ||
ErrLatency metrics.Timer | ||
OKLatency metrics.Timer | ||
Errors metrics.Counter `metric:"calls" tags:"result=err"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we usually call this "requests"
"find_traces.calls|result=ok": 1, | ||
"find_traces.calls|result=err": 0, | ||
"get_services.calls|result=ok": 1, | ||
"get_services.calls|result=err": 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the full name look like? Perhaps the operation name should be pushed into a tag as well: requests|operation=find_traces|result=ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good - the updated version is now:
jaeger_query_latency_bucket{operation="find_traces",result="err",le="0.005"} 0
jaeger_query_latency_bucket{operation="find_traces",result="ok",le="0.005"} 2
jaeger_query_requests{operation="find_traces",result="err"} 0
jaeger_query_requests{operation="find_traces",result="ok"} 2
jaeger_query_responses_bucket{operation="find_traces",le="0.005"} 2
Signed-off-by: Gary Brown <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be good to list the actual metric name changes in the changelog / breaking changes.
Signed-off-by: Gary Brown <[email protected]>
Signed-off-by: Gary Brown [email protected]
Which problem is this PR solving?
Addresses #1075 (comment)
Only issue is that the metric field needs a name, empty string does not work, so have called the overall counter(success/error) 'calls'. If another word is preferred let me know.
Short description of the changes
Revert to using the annotation approach for defining metrics.