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: servicenow.itsm.incident:
state: new state: new
caller: "admin" caller: "admin"
short_description: "CPUHog event detected on: {{ event.alert.labels.instance }}" short_description: "CPUHog event detected on: {{ ansible_eda.event.alert.labels.instance }}"
description: "A CPUHog was detected on: {{ event.alert.labels.instance }} that needs to be investigated." description: "A CPUHog was detected on: {{ ansible_eda.event.alert.labels.instance }} that needs to be investigated."
impact: high impact: high
urgency: high urgency: high
delegate_to: localhost delegate_to: localhost

View File

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