Skip to content

Commit

Permalink
Exclude grafana service from status code alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
adeveloper-wq committed Apr 3, 2024
1 parent c6d9d11 commit 6f66370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provisioning/alerting/alert-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ groups:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
expr: "sum by (service,method) (\n rate(traefik_service_requests_total{code=~\"2..|3..\",protocol=\"http\"}[2m])\n)\n/ ignoring (code) group_left\nsum by (service,method) (\n rate(traefik_service_requests_total{protocol=\"http\"}[2m])\n) "
expr: "sum by (service,method) (\n rate(traefik_service_requests_total{code=~\"2..|3..\",service!=\"grafana@docker\",protocol=\"http\"}[2m])\n)\n/ ignoring (code) group_left\nsum by (service,method) (\n rate(traefik_service_requests_total{protocol=\"http\",service!=\"grafana@docker\"}[2m])\n) "
instant: false
interval: ""
intervalMs: 60000
Expand Down

0 comments on commit 6f66370

Please sign in to comment.