Merge pull request #406 from cfarquhar/galera_alarms
Galera alarms for Issue #403
This commit is contained in:
commit
b2d4c0a923
@ -317,6 +317,9 @@
|
|||||||
check_details: file={{ check_name }}.py,args=-H,args={{ ansible_ssh_host }}
|
check_details: file={{ check_name }}.py,args=-H,args={{ ansible_ssh_host }}
|
||||||
check_period: "{{ maas_check_period }}"
|
check_period: "{{ maas_check_period }}"
|
||||||
check_timeout: "{{ maas_check_timeout }}"
|
check_timeout: "{{ maas_check_timeout }}"
|
||||||
|
alarms:
|
||||||
|
- { 'name': 'wsrep_cluster_size', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["WSREP_CLUSTER_SIZE"] < {{ groups["galera"] | length }}) { return new AlarmStatus(CRITICAL, "Galera cluster size less than expected"); }' }
|
||||||
|
- { 'name': 'wsrep_local_state', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["WSREP_LOCAL_STATE_COMMENT"] != "Synced" ) { return new AlarmStatus(CRITICAL, "Galera cluster node not syncd"); }' }
|
||||||
user: root
|
user: root
|
||||||
roles:
|
roles:
|
||||||
- maas_local
|
- maas_local
|
||||||
|
Loading…
x
Reference in New Issue
Block a user