Exclude metric name in vector arithmetric label matching.

This commit is contained in:
Julius Volz 2013-01-11 01:07:48 +01:00
parent c2c8b8ad87
commit 429b66019c

View file

@ -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
}
}