Skip to content

Commit 21bdf50

Browse files
committed
Add an alert for mysql connection errors
1 parent 835edca commit 21bdf50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbooks/prometheus/templates/default/alert_rules.yml.erb

+7
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,13 @@ groups:
421421
alertgroup: "{{ $labels.instance }}"
422422
annotations:
423423
connections_used: "{{ $value | humanizePercentage }}"
424+
- alert: mysql connection errors
425+
expr: increase(mysql_global_status_connection_errors_total[1m]) > 0
426+
for: 0m
427+
labels:
428+
alertgroup: "{{ $labels.instance }}"
429+
annotations:
430+
error_count: "{{ $value }}"
424431
- name: network
425432
rules:
426433
- alert: interface redundancy lost

0 commit comments

Comments
 (0)