fix: change variable names for event stream

This commit is contained in:
2026-04-09 06:56:32 -04:00
parent d33002b712
commit c7577ca2cb

View File

@@ -13,19 +13,19 @@
- 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.labels.org == "OYS" and event.status == "firing"
and event.labels.alertname == "root filesystem over 80% full"
actions:
- run_job_template:
name: Demo - Clean Log Directory
organization: OYS
job_args:
limit: "{{ event.alert.labels.instance }}"
limit: "{{ event.labels.instance }}"
extra_vars:
alertmanager_annotations: "{{ event.alert.annotations }}"
alertmanager_generator_url: "{{ event.alert.generatorURL }}"
event_mountpoint: "{{ event.alert.labels.mountpoint }}"
alertmanager_instance: "{{ event.alert.labels.instance }}"
alertmanager_annotations: "{{ event.annotations }}"
alertmanager_generator_url: "{{ event.generatorURL }}"
event_mountpoint: "{{ event.labels.mountpoint }}"
alertmanager_instance: "{{ event.labels.instance }}"
- name: Investigate High CPU
condition: