-
Notifications
You must be signed in to change notification settings - Fork 457
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
Optionally disable m3msg consumer metric scope #3802
Conversation
For large m3msg deployments the number of consumers can add a lot of cardinality to the metrics. Now users can disable the "consumer" label via the config option.
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.
LGTM
src/msg/producer/config/writer.go
Outdated
@@ -107,6 +107,9 @@ type WriterConfiguration struct { | |||
// IgnoreCutoffCutover allows producing writes ignoring cutoff/cutover timestamp. | |||
// Must be in sync with AggregatorConfiguration.WritesIgnoreCutoffCutover. | |||
IgnoreCutoffCutover bool `yaml:"ignoreCutoffCutover"` | |||
// WithoutConsumerScope drops the consumer tag from the metrics. For large m3msg deployments the consumer tag can | |||
// add a lot of cardinality to the metrics. | |||
WithoutConsumerScope bool `ymal:"withoutConsumerScope"` |
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.
typo: ymal
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.
lol how did the linter not catch this (at least locally)
Codecov Report
@@ Coverage Diff @@
## master #3802 +/- ##
========================================
- Coverage 57.0% 56.8% -0.3%
========================================
Files 552 552
Lines 63363 63077 -286
========================================
- Hits 36180 35880 -300
- Misses 23983 23998 +15
+ Partials 3200 3199 -1
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
For large m3msg deployments the number of consumers can add a lot of cardinality to the metrics. Now users can disable the "consumer" label via the config option.
For large m3msg deployments the number of consumers can add a lot of
cardinality to the metrics. Now users can disable the "consumer" label
via the config option.
What this PR does / why we need it:
Fixes #
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?: