You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ^^^^^^^^ Query is using aggregation with `without(colo_id, instance, node_type, region, node_status, job, colo_name)`, all labels included inside `without(...)` will be removed from the results.
14
-
| `job` label is required and should be preserved when aggregating all rules.
13
+
^^^^^^^^ Query is using aggregation with `without(colo_id, instance, node_type, region, node_status, job, colo_name)`, all labels included inside `without(...)` will be removed from the results.
14
+
`job` label is required and should be preserved when aggregating all rules.
15
15
16
16
Warning: label must be removed in aggregations (promql/aggregate)
17
17
---> rules/0001.yml:6 -> `colo_job:foo:irate3m`
18
18
6 | expr: sum(irate(foo[3m])) WITHOUT (colo_id)
19
-
| ^^^^^^^^ `instance` label should be removed when aggregating `^colo(?:_.+)?:.+$` rules.
19
+
^^^^^^^^ `instance` label should be removed when aggregating `^colo(?:_.+)?:.+$` rules.
20
20
21
21
Warning: redundant regexp (promql/regexp)
22
22
---> rules/0002.yaml:2 -> `colo_job:down:count`
23
23
2 | expr: up{job=~"foo"} == 0
24
-
| ^^^^^^^^^^ Unnecessary regexp match on static string `job=~"foo"`, use `job="foo"` instead.
24
+
^^^^^^^^^^ Unnecessary regexp match on static string `job=~"foo"`, use `job="foo"` instead.
25
25
26
26
Warning: redundant regexp (promql/regexp)
27
27
---> rules/0002.yaml:5 -> `colo_job:down:count`
28
28
5 | expr: up{job!~"foo"} == 0
29
-
| ^^^^^^^^^^ Unnecessary regexp match on static string `job!~"foo"`, use `job!="foo"` instead.
29
+
^^^^^^^^^^ Unnecessary regexp match on static string `job!~"foo"`, use `job!="foo"` instead.
30
30
31
31
Warning: label must be removed in aggregations (promql/aggregate)
32
32
---> rules/0003.yaml:11 -> `colo_job:up:count`
33
33
11 | expr: sum(foo) without(job)
34
-
| ^^^^^^^ `instance` label should be removed when aggregating `^colo(?:_.+)?:.+$` rules.
34
+
^^^^^^^ `instance` label should be removed when aggregating `^colo(?:_.+)?:.+$` rules.
35
35
36
36
Warning: required label is being removed via aggregation (promql/aggregate)
37
37
---> rules/0003.yaml:11 -> `colo_job:up:count`
38
38
11 | expr: sum(foo) without(job)
39
-
| ^^^^^^^ Query is using aggregation with `without(job)`, all labels included inside `without(...)` will be removed from the results.
40
-
| `job` label is required and should be preserved when aggregating all rules.
39
+
^^^^^^^ Query is using aggregation with `without(job)`, all labels included inside `without(...)` will be removed from the results.
40
+
`job` label is required and should be preserved when aggregating all rules.
41
41
42
42
Fatal: PromQL syntax error (promql/syntax)
43
43
---> rules/0003.yaml:14 -> `invalid`
44
44
14 | expr: sum(foo) by ())
45
-
| ^ unexpected right parenthesis ')'
45
+
^ unexpected right parenthesis ')'
46
46
47
47
Warning: required label is being removed via aggregation (promql/aggregate)
48
48
---> rules/0003.yaml:23-25 -> `colo:multiline`
49
49
23 | sum(
50
50
24 | multiline
51
51
25 | ) without(job, instance)
52
-
| ^^^^^^^ Query is using aggregation with `without(job, instance)`, all labels included inside `without(...)` will be removed from the results.
53
-
| `job` label is required and should be preserved when aggregating all rules.
52
+
^^^^^^^ Query is using aggregation with `without(job, instance)`, all labels included inside `without(...)` will be removed from the results.
53
+
`job` label is required and should be preserved when aggregating all rules.
54
54
55
55
Warning: label must be removed in aggregations (promql/aggregate)
0 commit comments