Browse Source

Add alert on mysql_up metric

Change-Id: I4de34ad6db6805235966ebcca6fe43ea1faaea42
pull/34/head
Simon Pasquier 7 years ago
parent
commit
0b8359ea11
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      galera/meta/prometheus.yml

+ 9
- 0
galera/meta/prometheus.yml View File

@@ -1,6 +1,15 @@
{% raw %}
server:
alert:
GaleraServiceDown:
if: >-
mysql_up != 1
labels:
severity: warning
service: mysql
annotations:
summary: 'Galera service down'
description: 'Galera service is down on node {{ $labels.host }}'
GaleraNodeNotReady:
if: 'mysql_wsrep_ready != 1'
for: 1m

Loading…
Cancel
Save