Skip to content

[🐛 Bug]: Prometheus provider stores alert name as alert id #4985

Open
@vmax

Description

@vmax

Describe the bug
Prometheus provider stores string values in id which breaks links in workflows:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Configure Prometheus+Alertmanager to send alerts to Keep via webhook API (/backend/alerts/event)
  2. Receive some events
  3. Build a workflow based on those events
  4. Observe 500 when clicking on the alert in "Triggered by":
Image

Expected behavior
Generate usable UUID

Screenshots
included

Additional context

Looks like it happens here:

alert_id = alert.get("id", alert.get("labels", {}).get("alertname"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingProviderProviders related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions