You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If spans contain attributes that start with a number, the metrics-generator might create metrics with invalid labels. These metrics are rejected by the Prometheus backend when they are being remote written.
Example response from Mimir (with data trimmed):
received a series with an invalid label: '1cloud' series: 'traces_target_info{1cloud=\"...\", ...' (err-mimir-label-invalid)"
Enable Prometheus's dimensional data model to identify any given combination of labels for the same metric name. It identifies a particular dimensional instantiation of that metric (for example: all HTTP requests that used the method POST to the /api/tracks handler). The query language allows filtering and aggregation based on these dimensions.
The change of any label's value, including adding or removing labels, will create a new time series.
Labels may contain ASCII letters, numbers, as well as underscores. They must match the regex [a-zA-Z_][a-zA-Z0-9_]*.
Label names beginning with __ (two "_") are reserved for internal use.
Label values may contain any Unicode characters.
Labels with an empty label value are considered equivalent to labels that do not exist.
To Reproduce
Steps to reproduce the behavior:
Start Tempo (SHA or version)
Configure metrics-generator to generate span and/or service graphs metrics
Send spans containing attributes with invalid Prometheus label names
Expected behavior
We have a few options, I'm not sure which one is best:
try to 'correct' the label, would it make sense to add a prefix in this case?
drop the label when the metric is created and report this
drop the entire sample when the metric is created and report this
Describe the bug
If spans contain attributes that start with a number, the metrics-generator might create metrics with invalid labels. These metrics are rejected by the Prometheus backend when they are being remote written.
Example response from Mimir (with data trimmed):
Prometheus says the following about metric labels:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We have a few options, I'm not sure which one is best:
Environment:
Additional Context
Similar issue: #4293
The text was updated successfully, but these errors were encountered: