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