Browse Source

Add Prometheus alerts

Change-Id: Ia6873c44f4e5b179a6c4a545fbf4b45c978812ea
pull/34/head
Simon Pasquier 7 years ago
parent
commit
e90dd8540d
2 changed files with 24 additions and 0 deletions
  1. +22
    -0
      galera/meta/prometheus.yml
  2. +2
    -0
      metadata/service/support.yml

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

@@ -0,0 +1,22 @@
{% raw %}
server:
alert:
GaleraNodeNotReady:
if: 'mysql_wsrep_ready != 1'
for: 1m
labels:
severity: warning
service: mysql
annotations:
summary: 'Galera on {{ $labels.host }} not ready'
description: 'The Galera service on {{ $labels.host }} is not ready to serve queries.'
GaleraNodeNotConnected:
if: 'mysql_wsrep_connected != 1'
for: 1m
labels:
severity: warning
service: mysql
annotations:
summary: 'Galera on {{ $labels.host }} not connected'
description: 'The Galera service on {{ $labels.host }} is not connected to the cluster.'
{% endraw %}

+ 2
- 0
metadata/service/support.yml View File

@@ -13,5 +13,7 @@ parameters:
enabled: true
grafana:
enabled: true
prometheus:
enabled: true
telegraf:
enabled: true

Loading…
Cancel
Save