Exclude metric name in vector arithmetric label matching.

pull/27/head
Julius Volz 2013-01-11 01:07:48 +01:00
parent c2c8b8ad87
commit 429b66019c
1 changed files with 1 additions and 1 deletions

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