Skip to content

Allow generic endpoint to receive alerts from external Prometheus

What does this MR do?

This MR enables the generic endpoint to handle Prometheus specific payload so users are only need to enable Settings > Integration > Alerts endpoint and use its token in their Prometheus Alertmanager. No need to enable Settings > Integrations > Prometheus.

Please see #218560 (closed) for more details.

Screenshots

Alerts endpoint enabled Screenshot_from_2020-05-20_17-57-33
Prometheus Alertmanager config Screenshot_from_2020-05-20_17-58-36
Prometheus integration disabled Screenshot_from_2020-05-20_17-57-41
Alerts list Screenshot_from_2020-05-20_17-56-29
Alerts details Screenshot_from_2020-05-20_17-57-55

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Rémy Coutable

Merge request reports