Add High CPU Investitgaion.
This commit is contained in:
@@ -7,13 +7,12 @@
|
||||
port: 9101
|
||||
host: 0.0.0.0
|
||||
rules:
|
||||
- name: Run Template
|
||||
- name: Resolve Disk Usage
|
||||
condition:
|
||||
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:
|
||||
- print_event:
|
||||
pretty: true
|
||||
- run_job_template:
|
||||
name: Demo - Clean Log Directory
|
||||
organization: OYS
|
||||
@@ -23,6 +22,15 @@
|
||||
alertmanager_generator_url: "{{ event.alert.generatorURL }}"
|
||||
event_mountpoint: "{{ event.alert.labels.mountpoint }}"
|
||||
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
|
||||
condition: event.alert.labels.alertname == "TestAlert" or event.alert.labels.org == "OYS"
|
||||
actions:
|
||||
|
||||
Reference in New Issue
Block a user