mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 22:27:17 +02:00
Update model/rulefmt/rulefmt.go
Co-authored-by: Owen Williams <owen.williams@grafana.com> Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
This commit is contained in:
parent
80d702afdc
commit
bd0d9e7a0a
@ -237,7 +237,7 @@ func (r *RuleNode) Validate() (nodes []WrappedError) {
|
|||||||
// Disallow "{}" chars.
|
// Disallow "{}" chars.
|
||||||
if strings.Contains(r.Record.Value, "{") || strings.Contains(r.Record.Value, "}") {
|
if strings.Contains(r.Record.Value, "{") || strings.Contains(r.Record.Value, "}") {
|
||||||
nodes = append(nodes, WrappedError{
|
nodes = append(nodes, WrappedError{
|
||||||
err: fmt.Errorf("potential issue in the recording rule name; should it be in expr?: %s", r.Record.Value),
|
err: fmt.Errorf("braces present in the recording rule name; should it be in expr?: %s", r.Record.Value),
|
||||||
node: &r.Record,
|
node: &r.Record,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user