@cryptotaxi247 / netdata-1 / commits / dc03daec6

health: add Inconsistent state to the mysql_galera_cluster_state alarm (#10945)

Ilya Mashchenko committed Apr 14, 2021 at 12:20 UTC dc03daec69a6dc4ede80e66d7a0527a4f611e76e
2 files changed +9 -8
health/health.d/mysql.conf
+3 -3
@@ -128,11 +128,11 @@ template: mysql_galera_cluster_state
128 on: mysql.galera_cluster_state
129 calc: $state
130 every: 10s
131 - warn: $this < 4
132 - crit: $this < 2
131 + warn: $this == 2 OR $this == 3
132 + crit: $this == 0 OR $this == 1 OR $this >= 5
133 delay: up 30s down 5m multiplier 1.5 max 1h
134 info: galera node state \
135 - (0: undefined, 1: joining, 2: donor/desynced, 3: joined, 4: synced)
135 + (0: Undefined, 1: Joining, 2: Donor/Desynced, 3: Joined, 4: Synced, 5: Inconsistent)
136 to: dba
137
138
web/gui/dashboard_info.js
+6 -5
@@ -1522,11 +1522,12 @@ netdataDashboard.context = {
1522
1523 'mysql.galera_cluster_state': {
1524 info:
1525 - '<code>0</code>: undefined, ' +
1526 - '<code>1</code>: joining, ' +
1527 - '<code>2</code>: donor/desynced, ' +
1528 - '<code>3</code>: joined, ' +
1529 - '<code>4</code>: synced.'
1525 + '<code>0</code>: Undefined, ' +
1526 + '<code>1</code>: Joining, ' +
1527 + '<code>2</code>: Donor/Desynced, ' +
1528 + '<code>3</code>: Joined, ' +
1529 + '<code>4</code>: Synced, ' +
1530 + '<code>5</code>: Inconsistent.'
1531 },
1532
1533 'mysql.galera_cluster_weight': {