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
Test error shows that prom engine returns two metrics - first one contains the first datapoint, and the second one contains the rest. Second metric has a duplicate label, which disappears when querying the api because response represents label set as a map.
What did you do?
In some cases range queries return multiple separate series with identical label sets where only one series is expected.
The conditions seem to be:
__name__
, for example__address__
__name__
metric * 2
Here's a unit test showing the problem: jDomantas@171c965
Test error shows that prom engine returns two metrics - first one contains the first datapoint, and the second one contains the rest. Second metric has a duplicate label, which disappears when querying the api because response represents label set as a map.
This bug appears to be introduced in #13446 -
DropMetricName
modifiesLabels
slice in-place, which sometimes screws up labels for other samples.What did you expect to see?
No duplicate series returned
What did you see instead? Under which circumstances?
First datapoint of the range query result returned as separate series
System information
No response
Prometheus version
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
The text was updated successfully, but these errors were encountered: