From 429b66019c33f36165c51a0b0f4bd6240f5b7955 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 11 Jan 2013 01:07:48 +0100 Subject: [PATCH] Exclude metric name in vector arithmetric label matching. --- rules/ast/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/ast/ast.go b/rules/ast/ast.go index f42e2a306..3da40c15c 100644 --- a/rules/ast/ast.go +++ b/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 } }