Fix paths to vars

This commit is contained in:
2024-04-17 14:12:26 -04:00
parent e3e5438db4
commit fa70098229
2 changed files with 8 additions and 8 deletions

View File

@@ -23,9 +23,9 @@
servicenow.itsm.incident:
state: new
caller: "admin"
short_description: "CPUHog event detected on: {{ event.alert.labels.instance }}"
description: "A CPUHog was detected on: {{ event.alert.labels.instance }} that needs to be investigated."
short_description: "CPUHog event detected on: {{ ansible_eda.event.alert.labels.instance }}"
description: "A CPUHog was detected on: {{ ansible_eda.event.alert.labels.instance }} that needs to be investigated."
impact: high
urgency: high
delegate_to: localhost

View File

@@ -1,11 +1,11 @@
= CPUHog Report =
A high CPU event was triggered from AlertManager.
{% if event is defined %}
Annotations: "{{ event.alert.annotations }}"
Generator URL: "{{ event.alert.generatorURL }}"
Severity: "{{ event.alert.labels.severity }}"
Instance: "{{ event.alert.labels.instance }}"
{% if ansible_eda is defined %}
Annotations: "{{ ansible_eda.event.alert.annotations }}"
Generator URL: "{{ ansible_eda.event.alert.generatorURL }}"
Severity: "{{ ansible_eda.event.alert.labels.severity }}"
Instance: "{{ ansible_eda.event.alert.labels.instance }}"
{% endif %}
** Top CPU Consumers **