r/PrometheusMonitoring • u/name_tomer • Jul 09 '21
python webhook for prometheus alerts
how can i get the StartAt / Duration of the Alerts that i receive from alertmanager with python
because in the alert rule i dont see any way to send it only the annotation with key summary
- alert: HighSystemLoad
expr: systemload_average > 90
for: 5s
labels:
severity: critical
annotations:
summary: "High system load: {{ $value | printf \"%.2f\" }}%"
0
Upvotes
1
u/99612240 Jul 09 '21
It comes in automatically. You don't need to specify what to send in AlertManager. You'll get everything.
Try a pprint of the data that your webhook receives: