Browse Source

Add alarms and alarm clusters

tags/2016.12
Éric Lemoine 8 years ago
parent
commit
75fab14b83
1 changed files with 60 additions and 0 deletions
  1. +60
    -0
      galera/meta/heka.yml

+ 60
- 0
galera/meta/heka.yml View File

engine: regex engine: regex
delimiter: '\n([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})' delimiter: '\n([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})'
delimiter_eol: false 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…
Cancel
Save