mirror of
https://github.com/prometheus/prometheus
synced 2025-03-31 15:57:12 +00:00
Exclude metric name in vector arithmetric label matching.
This commit is contained in:
parent
c2c8b8ad87
commit
429b66019c
@ -419,7 +419,7 @@ func labelsEqual(labels1, labels2 model.Metric) bool {
|
||||
return false
|
||||
}
|
||||
for label, value := range labels1 {
|
||||
if labels2[label] != value {
|
||||
if labels2[label] != value && label != "name" {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user