mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Change rule index numbering from 0 to n+1 on errors found in rule files (#7495)
* Change rule index numbering from 0 to n+1 on errors found in rule files Signed-off-by: Mikael Johansson <mik.json@gmail.com>
This commit is contained in:
parent
aa452d8ab4
commit
a98be49c52
|
@ -90,7 +90,7 @@ func (g *RuleGroups) Validate(node ruleGroups) (errs []error) {
|
||||||
}
|
}
|
||||||
errs = append(errs, &Error{
|
errs = append(errs, &Error{
|
||||||
Group: g.Name,
|
Group: g.Name,
|
||||||
Rule: i,
|
Rule: i + 1,
|
||||||
RuleName: ruleName.Value,
|
RuleName: ruleName.Value,
|
||||||
Err: node,
|
Err: node,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue