-
Notifications
You must be signed in to change notification settings - Fork 802
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
Add label size bytes native histogram #6380
Conversation
Signed-off-by: Anna Tran <[email protected]>
Lets also update here cortex/pkg/util/validation/validate.go Line 340 in 8c053a3
|
Signed-off-by: Anna Tran <[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.
Thanks
Signed-off-by: Anna Tran <[email protected]>
@@ -120,11 +121,21 @@ func NewValidateMetrics(r prometheus.Registerer) *ValidateMetrics { | |||
[]string{"user"}, | |||
) | |||
registerCollector(r, histogramSamplesReducedResolution) | |||
labelSizeBytes := prometheus.NewHistogramVec(prometheus.HistogramOpts{ | |||
Name: "cortex_label_size_bytes", |
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.
Should we call it cortex_series_label_size_bytes
? cortex_label_size_bytes
makes me confused that this metric is for a single label not combined label size total
What this PR does:
Exposes a new native histogram metric
cortex_label_size_bytes
to allow tenants to monitor how close they are to hitting the label size limit.Which issue(s) this PR fixes:
Fixes #6372
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]