瀏覽代碼

Merge pull request #21 from elemoine/alarms

Split the mysql alarm cluster
tags/2016.12^0
Éric Lemoine 8 年之前
父節點
當前提交
a4fa60527a
共有 1 個檔案被更改,包括 28 行新增7 行删除
  1. +28
    -7
      galera/meta/heka.yml

+ 28
- 7
galera/meta/heka.yml 查看文件

function: last function: last
mysql_node_connected: mysql_node_connected:
description: 'The MySQL service has lost connectivity with the other nodes' description: 'The MySQL service has lost connectivity with the other nodes'
severity: critical
severity: down
rules: rules:
- metric: mysql_cluster_connected - metric: mysql_cluster_connected
relational_operator: '==' relational_operator: '=='
function: min function: min
mysql_node_ready: mysql_node_ready:
description: "The MySQL service isn't ready to serve queries" description: "The MySQL service isn't ready to serve queries"
severity: critical
severity: down
rules: rules:
- metric: mysql_cluster_ready - metric: mysql_cluster_ready
relational_operator: '==' relational_operator: '=='
triggers: triggers:
- mysql_check - mysql_check
dimension: dimension:
service: mysql
service: mysql-check
mysql_node_status: mysql_node_status:
alerting: enabled alerting: enabled
triggers: triggers:
- mysql_node_connected - mysql_node_connected
- mysql_node_ready - mysql_node_ready
dimension: dimension:
service: mysql
service: mysql-node-status
aggregator: aggregator:
alarm_cluster: alarm_cluster:
mysql:
mysql_check:
policy: availability_of_members policy: availability_of_members
alerting: enabled_with_notification
alerting: enabled
match: match:
service: mysql
service: mysql-check
group_by: hostname group_by: hostname
members: members:
- mysql_check - mysql_check
dimension:
service: mysql
nagios_host: 01-service-clusters
mysql_status:
policy: availability_of_members
alerting: enabled
match:
service: mysql-node-status
group_by: hostname
members:
- mysql_node_status - mysql_node_status
dimension:
service: mysql
nagios_host: 01-service-clusters
mysql:
policy: highest_severity
alerting: enabled_with_notification
match:
service: mysql
members:
- mysql_check
- mysql_status
dimension: dimension:
cluster_name: mysql cluster_name: mysql
nagios_host: 00-top-clusters nagios_host: 00-top-clusters

Loading…
取消
儲存