diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2019-10-21 15:26:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-21 15:26:08 +0300 |
commit | 7ea174c73919cf72a67afd56648f496417a38474 (patch) | |
tree | 3f917502f3418a24cf472e22ed39f7f2b0b4f723 /health | |
parent | 23da557d13913e7dae3fdf4461309876b4b80581 (diff) |
mysql: add cluster_status alarm (#6989)
Diffstat (limited to 'health')
-rw-r--r-- | health/health.d/mysql.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/health/health.d/mysql.conf b/health/health.d/mysql.conf index ce7b98a874..2bec56387e 100644 --- a/health/health.d/mysql.conf +++ b/health/health.d/mysql.conf @@ -132,3 +132,15 @@ template: mysql_galera_cluster_state delay: up 30s down 5m multiplier 1.5 max 1h info: node state (0: undefined, 1: joining, 2: donor/desynced, 3: joined, 4: synced) to: dba + + +# galera node status + +template: mysql_galera_cluster_status + on: mysql.galera_cluster_status + calc: $wsrep_cluster_status + every: 10s + crit: $mysql_galera_cluster_state != nan AND $this != 0 + delay: up 30s down 5m multiplier 1.5 max 1h + info: node and cluster status (-1: unknown, 0: primary/quorum present, 1: non-primary/quorum lost, 2: disconnected) + to: dba |