I want to have only required information on Opsgenie alert

23 views
Skip to first unread message

Ratna Kumar

unread,
Jul 30, 2024, 5:59:34 AM7/30/24
to Prometheus Users
I need some help on configuring alert description in opsgenie.

We are sending alerts to opsgenie via alertmanager. Below is the sample rule.yaml file. In this file, we are adding alert name, summary and description but when alert triggers we are seeing below subject instead of this CPU utilization exceeded threshold(75%) on dga

[Prometheus]: [FIRING:1] CPU utilization exceeded threshold(75%) on dga telegraf-live-env critical (production dga dga cpu-total l

Can anyone please help me to get only required subject instead of getting above one

Rule.yaml:
---
kind: VMRule
metadata:
name: dga-alerts
labels:
app: victoria-metrics
spec:
groups:
- name: dga
rules:
- alert: CPU utilization exceeded threshold(75%) on dga
annotations:
summary: "Host high CPU load (instance {{ $labels.instance }})"
description: "CPU spike on {{ $labels.instance }} for {{ $labels.node }} is above threshold(75).\n VALUE = {{ $value }}"
runbookURL: ""
expr: |
100 -(cpu_usage_idle{cpu="cpu-total",ENV="production",host=~"dga[0-9]"}) > 75
for: 5m
labels:
severity: critical
job: "{{ $labels.job }}"
node: "{{ $labels.node }}"



Reply all
Reply to author
Forward
0 new messages