mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-06 14:17:12 +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.
|
||||
if strings.Contains(r.Record.Value, "{") || strings.Contains(r.Record.Value, "}") {
|
||||
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,
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user