Skip to content

Feature request: Allow plain forwarding of alerts in routes #2868

@codesome

Description

@codesome

What

I would like to propose a feature (via config) to mention forward_alerts: true (or some other name) under routing config which totally ignores group interval, group wait, repeat interval, and group by, and simply forwards all alerts that it comes across to the configured receivers.

Why

Grafana Cloud and Amazon Managed Prometheus (and probably more) uses Prometheus Alertmanager in the cloud offerings to send alerts. This adds hurdles in testing the Prometheus alert-generator compliance because alerts cannot be send back to the test suite properly as expected. This can be fixed up to some extent by having groupinterval=1s, groupwait=1s, repeatinterval=100y, groupby=.... But it won't forward duplicate alerts that are sent by alert-generator every minute. (setting repeatinterval=1m also has its problems).

There might also be other use cases with this that I don't know of yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions