Browse Source

Exclude metric name in vector arithmetric label matching.

pull/27/head
Julius Volz 12 years ago
parent
commit
429b66019c
  1. 2
      rules/ast/ast.go

2
rules/ast/ast.go

@ -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…
Cancel
Save