mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -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{
|
||||
Group: g.Name,
|
||||
Rule: i,
|
||||
Rule: i + 1,
|
||||
RuleName: ruleName.Value,
|
||||
Err: node,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue