80 lines
2.1 KiB
YAML
80 lines
2.1 KiB
YAML
alarms:
|
|
- name: 'root-fs-warning'
|
|
description: 'The root filesystem free space is low'
|
|
severity: 'warning'
|
|
enabled: 'true'
|
|
trigger:
|
|
rules:
|
|
- metric: 'intel.procfs.filesystem.space_percent_free'
|
|
fields:
|
|
filesystem: 'rootfs'
|
|
relational_operator: '<'
|
|
threshold: 10
|
|
window: 60
|
|
periods: 0
|
|
function: min
|
|
- name: 'root-fs-critical'
|
|
description: 'The root filesystem free space is too low'
|
|
severity: 'critical'
|
|
enabled: 'true'
|
|
trigger:
|
|
rules:
|
|
- metric: 'intel.procfs.filesystem.space_percent_free'
|
|
fields:
|
|
filesystem: 'rootfs'
|
|
relational_operator: '<'
|
|
threshold: 5
|
|
window: 60
|
|
periods: 0
|
|
function: min
|
|
- name: 'cpu-critical'
|
|
description: 'The CPU usage is too high'
|
|
severity: 'critical'
|
|
trigger:
|
|
logical_operator: 'or'
|
|
rules:
|
|
- metric: 'intel.procfs.cpu.idle_percentage'
|
|
fields:
|
|
cpuID: 'all'
|
|
relational_operator: '<='
|
|
threshold: '5'
|
|
window: '120'
|
|
periods: '0'
|
|
function: 'avg'
|
|
- metric: 'intel.procfs.cpu.iowait_percentage'
|
|
fields:
|
|
cpuID: 'all'
|
|
relational_operator: '>='
|
|
threshold: '35'
|
|
window: '120'
|
|
periods: '0'
|
|
function: 'avg'
|
|
- name: 'cpu-warning'
|
|
description: 'The CPU usage is high'
|
|
severity: 'warning'
|
|
trigger:
|
|
logical_operator: 'or'
|
|
rules:
|
|
- metric: 'intel.procfs.cpu.idle_percentage'
|
|
fields:
|
|
cpuID: 'all'
|
|
relational_operator: '<='
|
|
threshold: '15'
|
|
window: '120'
|
|
periods: '0'
|
|
function: 'avg'
|
|
- metric: 'intel.procfs.cpu.iowait_percentage'
|
|
fields:
|
|
cpuID: 'all'
|
|
relational_operator: '>='
|
|
threshold: '25'
|
|
window: '120'
|
|
periods: '0'
|
|
function: 'avg'
|
|
|
|
node_cluster_alarms:
|
|
system:
|
|
alarms:
|
|
rootfs: ['root-fs-critical', 'root-fs-warning']
|
|
cpu: ['cpu-critical', 'cpu-warning']
|