cloudflare/pint
Publicmirrored from https://github.com/cloudflare/pintAvailable
docs/examples/ignore_error_metrics.hcl
23lines · 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 | |
| 7 | paths = [ |
| 8 | "alerting/prod/.+", |
| 9 | "recording/prod/.+", |
| 10 | ] |
| 11 | } |
| 12 | |
| 13 | # Extra global configuration for the promql/series check. |
| 14 | check "promql/series" { |
| 15 | # Don't report missing metrics for any metric with name matching |
| 16 | # one of the regexp matchers below. |
| 17 | ignoreMetrics = [ |
| 18 | ".+_error", |
| 19 | ".+_error_.+", |
| 20 | ".+_errors", |
| 21 | ".+_errors_.+", |
| 22 | ] |
| 23 | } |
| 24 | |