From c21450a08982ca3a6e92cde02acbad8e43cb718d Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 17 Jan 2013 23:45:57 +0100 Subject: [PATCH] Use correct label name for metric name in rule. --- rules/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/rules.go b/rules/rules.go index ec6b8ad76..1dda711fc 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -27,7 +27,7 @@ func (rule *Rule) Eval(timestamp *time.Time) ast.Vector { // Override the metric name and labels. for _, sample := range vector { - sample.Metric["metric"] = model.LabelValue(rule.name) + sample.Metric["name"] = model.LabelValue(rule.name) for label, value := range rule.labels { if value == "" { delete(sample.Metric, label)