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
30 | instance: 'sum on {{ $labels.instance }} is {{ $value }}'
265
265
266
-
rules.yml:30 Bug: Template is using `instance` label but the query removes it. (alerts/template)
266
+
rules.yml:30 Bug: Template is using `instance` label but the query results won't have this label. Query is using aggregation with `by(foo)`, only labels included inside `by(...)` will be present on the results. (alerts/template)
267
267
30 | instance: 'sum on {{ $labels.instance }} is {{ $value }}'
268
268
269
269
rules.yml:32-33 Bug: `link` annotation is required. (alerts/annotation)
rules/01.yml:12 Bug: Template is using `cluster` label but the query removes it. (alerts/template)
10
+
rules/01.yml:12 Bug: Template is using `cluster` label but the query results won't have this label. Query is using aggregation that removes all labels. (alerts/template)
11
11
12 | summary: "Server {{ $labels.instance }} in cluster {{ $labels.cluster }} has gone down"
12
12
13
-
rules/01.yml:12 Bug: Template is using `instance` label but the query removes it. (alerts/template)
13
+
rules/01.yml:12 Bug: Template is using `instance` label but the query results won't have this label. Query is using aggregation that removes all labels. (alerts/template)
14
14
12 | summary: "Server {{ $labels.instance }} in cluster {{ $labels.cluster }} has gone down"
15
15
16
-
rules/01.yml:13 Bug: Template is using `cluster` label but the query removes it. (alerts/template)
16
+
rules/01.yml:13 Bug: Template is using `cluster` label but the query results won't have this label. Query is using aggregation that removes all labels. (alerts/template)
Text: "Template is using `job` label but the query removes it.",
338
-
Details: checks.TemplateCheckAggregationDetails,
337
+
Text: "Template is using `job` label but the query results won't have this label. Query is using aggregation with `without(job)`, all labels included inside `without(...)` will be removed from the results.",
338
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `sum(foo) without(job)`.",
Text: "Template is using `job` label but the query removes it.",
358
-
Details: checks.TemplateCheckAggregationDetails,
357
+
Text: "Template is using `job` label but the query results won't have this label. Query is using aggregation with `without(job)`, all labels included inside `without(...)` will be removed from the results.",
358
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `sum(foo) without(job)`.",
Text: "Template is using `job` label but the query removes it.",
378
-
Details: checks.TemplateCheckAggregationDetails,
377
+
Text: "Template is using `job` label but the query results won't have this label. Query is using aggregation with `without(job)`, all labels included inside `without(...)` will be removed from the results.",
378
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `sum(foo) without(job)`.",
Text: "Template is using `job` label but the query removes it.",
418
-
Details: checks.TemplateCheckAggregationDetails,
417
+
Text: "Template is using `job` label but the query results won't have this label. Query is using aggregation with `by(notjob)`, only labels included inside `by(...)` will be present on the results.",
418
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `sum(foo) by(notjob)`.",
Text: "Template is using `ixtance` label but the query removes it.",
444
-
Details: checks.TemplateCheckAggregationDetails,
443
+
Text: "Template is using `ixtance` label but the query results won't have this label. Query is using aggregation with `by(instance, version)`, only labels included inside `by(...)` will be present on the results.",
444
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `count(build_info) by (instance, version)`.",
or avg without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*multicolo.*"})
1320
1320
< 0.4 > 0
1321
-
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*aggregate.*"} OR router_anycast_prefix_enabled{prefix=~"141.101.112.0/20|190.93.240.0/20"})
1322
-
< 20 > 0
1323
1321
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*offpeak.*"})
1324
1322
< 8 > 0
1325
1323
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*tier1.*"})
or avg without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*multicolo.*"})
1348
1346
< 0.4 > 0
1349
-
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*aggregate.*"} OR router_anycast_prefix_enabled{prefix=~"141.101.112.0/20|190.93.240.0/20"})
1350
-
< 20 > 0
1351
1347
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*offpeak.*"})
1352
1348
< 8 > 0
1353
1349
or sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~".*tier1.*"})
Text: "Template is using `prefix` label but the query removes it.",
1375
-
Details: checks.TemplateCheckAggregationDetails,
1370
+
Text: "Template is using `prefix` label but the query results won't have this label. Query is using one-to-one vector matching with `on()`, only labels included inside `on(...)` will be present on the results.",
1371
+
Details: checks.TemplateCheckAggregationDetails+"\nQuery fragment causing this problem: `sum without(router, colo_id, instance) (router_anycast_prefix_enabled{cidr_use_case=~\".*tier1.*\"}) < on() count(colo_router_tier:disabled_pops:max{tier=\"1\",router=~\"edge.*\"}) * 0.4`.",
0 commit comments