Add High CPU Investitgaion.
This commit is contained in:
@@ -7,13 +7,12 @@
|
|||||||
port: 9101
|
port: 9101
|
||||||
host: 0.0.0.0
|
host: 0.0.0.0
|
||||||
rules:
|
rules:
|
||||||
- name: Run Template
|
- name: Resolve Disk Usage
|
||||||
condition:
|
condition:
|
||||||
all:
|
all:
|
||||||
- event.alert.labels.org == "OYS" and event.alert.status == "firing" and event.alert.labels.alertname == "root filesystem over 80% full"
|
- event.alert.labels.org == "OYS" and event.alert.status == "firing" \
|
||||||
|
and event.alert.labels.alertname == "root filesystem over 80% full"
|
||||||
actions:
|
actions:
|
||||||
- print_event:
|
|
||||||
pretty: true
|
|
||||||
- run_job_template:
|
- run_job_template:
|
||||||
name: Demo - Clean Log Directory
|
name: Demo - Clean Log Directory
|
||||||
organization: OYS
|
organization: OYS
|
||||||
@@ -23,6 +22,15 @@
|
|||||||
alertmanager_generator_url: "{{ event.alert.generatorURL }}"
|
alertmanager_generator_url: "{{ event.alert.generatorURL }}"
|
||||||
event_mountpoint: "{{ event.alert.labels.mountpoint }}"
|
event_mountpoint: "{{ event.alert.labels.mountpoint }}"
|
||||||
alertmanager_instance: "{{ event.alert.labels.instance }}"
|
alertmanager_instance: "{{ event.alert.labels.instance }}"
|
||||||
|
- name: Investigate High CPU
|
||||||
|
condition:
|
||||||
|
all:
|
||||||
|
- event.alert.labels.org == "OYS" and event.alert.status == "firing" \
|
||||||
|
and event.alert.labels.alertname == "ProcessCPUHog"
|
||||||
|
actions:
|
||||||
|
- print_event:
|
||||||
|
pretty: true
|
||||||
|
|
||||||
- name: Test Contact Point
|
- name: Test Contact Point
|
||||||
condition: event.alert.labels.alertname == "TestAlert" or event.alert.labels.org == "OYS"
|
condition: event.alert.labels.alertname == "TestAlert" or event.alert.labels.org == "OYS"
|
||||||
actions:
|
actions:
|
||||||
|
|||||||
Reference in New Issue
Block a user