mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08: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 a new issue