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
Copy file name to clipboardexpand all lines: cmd/pint/tests/0160_ci_comment_edit.txt
+4-1
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,13 @@ level=WARN msg="No results for Prometheus uptime metric, you might have set upti
46
46
level=WARN msg="Using dummy Prometheus uptime metric results with no gaps" name=prom metric=up
47
47
level=WARN msg="No results for Prometheus uptime metric, you might have set uptime config option to a missing metric, please check your config" name=prom metric=up
48
48
level=WARN msg="Using dummy Prometheus uptime metric results with no gaps" name=prom metric=up
49
-
level=INFO msg="Problems found" Bug=2
49
+
level=INFO msg="Problems found" Bug=2 Warning=1
50
50
rules.yml:8 Bug: `prom` Prometheus server at http://127.0.0.1:7160 didn't have any series for `up` metric in the last 1w. (promql/series)
51
51
8 | expr: up == 0
52
52
53
+
rules.yml:8 Warning: pint disable comment `promql/series(xxx)` check doesn't match any selector in this query (promql/series)
54
+
8 | expr: up == 0
55
+
53
56
rules.yml:16 Bug: `prom` Prometheus server at http://127.0.0.1:7160 didn't have any series for `up` metric in the last 1w. (promql/series)
Copy file name to clipboardexpand all lines: internal/checks/promql_series.go
+131-13
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,8 @@ To fully validate your changes it's best to first deploy the rules that generate
70
70
SeriesCheckCommonProblemDetails=`[Click here](https://cloudflare.github.io/pint/checks/promql/series.html#common-problems) to see a list of common problems that might cause this.`
71
71
SeriesCheckMinAgeDetails=`You have a comment that tells pint how long can a metric be missing before it warns you about it but this comment is not formatted correctly.
72
72
[Click here](https://cloudflare.github.io/pint/checks/promql/series.html#min-age) to see supported syntax.`
73
+
SeriesCheckUnusedDisableComment="One of the `# pint disable promql/series` comments used in this rule doesn't have any effect and won't disable anything.\n[Click here](https://cloudflare.github.io/pint/checks/promql/series.html#how-to-disable-it) to see docs about disable comment syntax."
74
+
SeriesCheckUnusedRuleSetComment="One of the `# pint rule/set promql/series` comments used in this rule doesn't have any effect. Make sure that the comment targets labels that are used in the rule query.\n[Click here](https://cloudflare.github.io/pint/checks/promql/series.html#ignorelabel-value) for docs about comment syntax."
0 commit comments