From 750c563576422d37fb6132cceaa9679c4b0f441d Mon Sep 17 00:00:00 2001 From: yeya24 Date: Mon, 15 Jun 2020 22:58:48 -0400 Subject: [PATCH] use original file name in rules loaded metric Signed-off-by: yeya24 --- cmd/thanos/rule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thanos/rule.go b/cmd/thanos/rule.go index 6af5f582e9..66a21c1a5c 100644 --- a/cmd/thanos/rule.go +++ b/cmd/thanos/rule.go @@ -793,7 +793,7 @@ func reloadRules(logger log.Logger, metrics.rulesLoaded.Reset() for _, group := range ruleMgr.RuleGroups() { - metrics.rulesLoaded.WithLabelValues(group.PartialResponseStrategy.String(), group.File(), group.Name()).Set(float64(len(group.Rules()))) + metrics.rulesLoaded.WithLabelValues(group.PartialResponseStrategy.String(), group.OriginalFile, group.Name()).Set(float64(len(group.Rules()))) } return errs.Err() }