瀏覽代碼

Add alert on mysql_up metric

Change-Id: I4de34ad6db6805235966ebcca6fe43ea1faaea42
pull/34/head
Simon Pasquier 7 年之前
父節點
當前提交
0b8359ea11
共有 1 個檔案被更改,包括 9 行新增0 行删除
  1. +9
    -0
      galera/meta/prometheus.yml

+ 9
- 0
galera/meta/prometheus.yml 查看文件

@@ -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…
取消
儲存