-
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
Use tags in agent metrics #950
Use tags in agent metrics #950
Conversation
Signed-off-by: Eundoo Song <eundoo.song@gmail.com>
bd23317
to
b05f189
Compare
Codecov Report
@@ Coverage Diff @@
## master #950 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 136 136
Lines 6322 6320 -2
=====================================
- Hits 6322 6320 -2
Continue to review full report at Codecov.
|
@@ -34,19 +34,19 @@ const ( | |||
|
|||
type batchMetrics struct { | |||
// Number of successful batch submissions to collector | |||
BatchesSubmitted metrics.Counter `metric:"batches.submitted"` | |||
BatchesSubmitted metrics.Counter `metric:"tc-reporter.batches.submitted"` |
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.
- there is no need to add tc-reporter explicitly like that, since you can pass that string as the first argument to Namespace in L76 (see point 3 below).
- since the metrics are changing anyway, maybe we should rename them to use underscores, as we did with other backend metrics?
- I think historically
tc
was used to refer totcollector
, which was the TChannel name of the collector service (now it'sjaeger-collector
). When we implement Refactor Agent configuration #927, there will be a different type of reporter, e.g.grpc-reporter
. Also, in some cases we internally run the agent with two reporters (using OtherReporters configuration of the builder), I don't even know if they distinguish their metrics. So my suggestion, at minimum, to rename this totchannel-reporter
, to make it more obvious what we're talking about, but we also need to figure out how metrics will work after Refactor Agent configuration #927.
cc @black-adder
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.
- since the metrics are changing anyway, maybe we should rename them to use underscores, as we did with other backend metrics?
I can change it using underscore like tchannel_reporter
. Just curious, the reason I kept using -
is normalizer in jaeger-lib already replaces them. Don't we need it?
https://github.com/jaegertracing/jaeger-lib/blob/master/metrics/prometheus/factory.go#L109
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.
actually I see that collector metrics are still using dots as separators, so never mind about understores
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.
Signed-off-by: eundoo-song <eundoo.song@samsung.com>
|
Thanks! |
Signed-off-by: Eundoo Song eundoo.song@gmail.com
Which problem is this PR solving?
Short description of the changes