소스 검색

Add alarms and alarm clusters

tags/2016.12
Éric Lemoine 8 년 전
부모
커밋
75fab14b83
1개의 변경된 파일60개의 추가작업 그리고 0개의 파일을 삭제
  1. +60
    -0
      galera/meta/heka.yml

+ 60
- 0
galera/meta/heka.yml 파일 보기

@@ -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

Loading…
취소
저장