-
Notifications
You must be signed in to change notification settings - Fork 453
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
[coordinator] Fix Graphite metric ID formatting using m3aggregator with m3coordinator #2060
Conversation
…or and m3coordinator for downsampling
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.
verified working.
// and this tag is interpreted, eventually need to handle more cleanly. | ||
if bytes.Equal(name, downsample.MetricsOptionIDSchemeTagName) { | ||
if bytes.Equal(value, downsample.GraphiteIDSchemeTagValue) && | ||
op.q.Tags.Opts.IDSchemeType() != models.TypeGraphite { |
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.
Oof yuck :p
small nit: probably be slightly more performant to check for scheme type first? Or to get that as a bool earlier to avoid function calls?
Codecov Report
@@ Coverage Diff @@
## master #2060 +/- ##
========================================
Coverage ? 72.2%
========================================
Files ? 1014
Lines ? 87372
Branches ? 0
========================================
Hits ? 63107
Misses ? 20013
Partials ? 4252
Continue to review full report at Codecov.
|
@@ -140,6 +140,10 @@ func (w *downsamplerFlushHandlerWriter) Write( | |||
|
|||
// NB(r): Quite gross, need to actually make it possible to plumb this | |||
// through for each metric. | |||
// TODO_FIX_GRAPHITE_TAGGING: Using this string constant to track |
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 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.
Definitely will be here... for a while..
What this PR does / why we need it:
Fixes Graphite metric ID formatting using m3aggregator with m3coordinator for downsampling (instead of embedded downsampling).
Special notes for your reviewer:
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: