cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
docs/examples/ignore_error_metrics.hcl
22lines · modecode
| 1 | # Define "prod" Prometheus instance that will only be used for |
| 2 | # rules defined in file matching "alerting/prod/.+" or "recording/prod/.+". |
| 3 | prometheus "prod" { |
| 4 | uri = "https://prod.example.com" |
| 5 | timeout = "30s" |
| 6 | include = [ |
| 7 | "alerting/prod/.+", |
| 8 | "recording/prod/.+", |
| 9 | ] |
| 10 | } |
| 11 | |
| 12 | # Extra global configuration for the promql/series check. |
| 13 | check "promql/series" { |
| 14 | # Don't report missing metrics for any metric with name matching |
| 15 | # one of the regexp matchers below. |
| 16 | ignoreMetrics = [ |
| 17 | ".+_error", |
| 18 | ".+_error_.+", |
| 19 | ".+_errors", |
| 20 | ".+_errors_.+", |
| 21 | ] |
| 22 | } |
| 23 | |