Skip to content

Commit

Permalink
*: add grafana mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Dec 9, 2022
1 parent 314aaa6 commit a51b164
Show file tree
Hide file tree
Showing 6 changed files with 642 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/grafana/alerts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
groups:
- name: GrafanaAlerts
rules:
- alert: GrafanaRequestsFailing
annotations:
message: '{{ $labels.namespace }}/{{ $labels.job }}/{{ $labels.handler }} is
experiencing {{ $value | humanize }}% errors'
expr: |
100 * namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m{handler!~"/api/datasources/proxy/:id.*|/api/ds/query|/api/tsdb/query", status_code=~"5.."}
/ ignoring (status_code)
sum without (status_code) (namespace_job_handler_statuscode:grafana_http_request_duration_seconds_count:rate5m{handler!~"/api/datasources/proxy/:id.*|/api/ds/query|/api/tsdb/query"})
> 50
for: 5m
labels:
severity: warning
Loading

0 comments on commit a51b164

Please sign in to comment.