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

[coordinator] Fix Graphite metric ID formatting using m3aggregator with m3coordinator #2060

Merged
merged 4 commits into from
Jan 7, 2020

Conversation

robskillington
Copy link
Collaborator

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?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

Copy link
Collaborator

@yinovator yinovator left a 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 {
Copy link
Collaborator

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
Copy link

codecov bot commented Jan 2, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@141704c). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #2060   +/-   ##
========================================
  Coverage          ?   72.2%           
========================================
  Files             ?    1014           
  Lines             ?   87372           
  Branches          ?       0           
========================================
  Hits              ?   63107           
  Misses            ?   20013           
  Partials          ?    4252
Flag Coverage Δ
#aggregator 82% <0%> (?)
#cluster 85.6% <0%> (?)
#collector 64.8% <0%> (?)
#dbnode 79.4% <0%> (?)
#m3em 73.2% <0%> (?)
#m3ninx 73.9% <0%> (?)
#m3nsch 51.1% <0%> (?)
#metrics 17.7% <0%> (?)
#msg 74.9% <0%> (?)
#query 68.2% <0%> (?)
#x 83.3% <0%> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 141704c...906be99. Read the comment docs.

@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

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

Calling it now :p

image

Copy link
Collaborator Author

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..

@robskillington robskillington merged commit b2f5b55 into master Jan 7, 2020
@robskillington robskillington deleted the r/fix-graphite-tag-options-end-to-end branch January 7, 2020 19:40
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.

3 participants