Support Alerting on Group-Level Prometheus
Problem to solve
In #51963 (closed), we are adding support for Prometheus at the group-level and NOT including support for alerts. Here we implement support for alerts from group-level prometheus clusters.
With the alerting feature, sharing a Prometheus server between projects has gotten more complex.
- We dynamically build the Prometheus configuration, based on the configured alerts.
- There is also a webhook setup on the GitLab side, to receive any notifications of triggered alerts. I think this is at the project level.
So in order to support Prometheus at group level, we will need to:
- Aggregate the needed alerts that need to be configured across all the group's projects.
- Potentially configure each alert to notify the existing project webhook, or define a new group webhook endpoint.