Describe the bug
Prometheus provider stores string values in id which breaks links in workflows:
To Reproduce
Steps to reproduce the behavior:
- Configure Prometheus+Alertmanager to send alerts to Keep via webhook API (
/backend/alerts/event)
- Receive some events
- Build a workflow based on those events
- Observe 500 when clicking on the alert in "Triggered by":
Expected behavior
Generate usable UUID
Screenshots
included
Additional context
Looks like it happens here:
|
alert_id = alert.get("id", alert.get("labels", {}).get("alertname")) |
Describe the bug
Prometheus provider stores string values in
idwhich breaks links in workflows:To Reproduce
Steps to reproduce the behavior:
/backend/alerts/event)Expected behavior
Generate usable UUID
Screenshots
included
Additional context
Looks like it happens here:
keep/keep/providers/prometheus_provider/prometheus_provider.py
Line 182 in 3caff53