Przeglądaj źródła

Merge pull request #15 from elemoine/stacklight-alarm

Add alarms and alarm clusters
tags/2016.12
Éric Lemoine 8 lat temu
rodzic
commit
f005f08e79
1 zmienionych plików z 60 dodań i 0 usunięć
  1. +60
    -0
      galera/meta/heka.yml

+ 60
- 0
galera/meta/heka.yml Wyświetl plik

@@ -18,3 +18,63 @@ log_collector:
engine: regex
delimiter: '\n([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})'
delimiter_eol: false
metric_collector:
trigger:
mysql_check:
description: 'MySQL cannot be checked'
severity: down
rules:
- metric: mysql_check
relational_operator: '=='
threshold: 0
window: 60
periods: 0
function: last
mysql_node_connected:
description: 'The MySQL service has lost connectivity with the other nodes'
severity: critical
rules:
- metric: mysql_cluster_connected
relational_operator: '=='
threshold: 0
window: 30
periods: 1
function: min
mysql_node_ready:
description: "The MySQL service isn't ready to serve queries"
severity: critical
rules:
- metric: mysql_cluster_ready
relational_operator: '=='
threshold: 0
window: 30
periods: 1
function: min
alarm:
mysql_check:
alerting: enabled
triggers:
- mysql_check
dimension:
service: mysql
mysql_node_status:
alerting: enabled
triggers:
- mysql_node_connected
- mysql_node_ready
dimension:
service: mysql
aggregator:
alarm_cluster:
mysql:
policy: majority_of_members
alerting: enabled_with_notification
match:
service: mysql
group_by: hostname
members:
- mysql_check
- mysql_node_status
dimension:
cluster_name: mysql
nagios_host: 00-top-clusters

Ładowanie…
Anuluj
Zapisz