Skip to content

Improve default title and description of issues opened from managed Prometheus alerts

Problem to solve

Currently we open relatively empty issues when an alert is triggered from a managed Prometheus server.

Right now you end up with the title of the chart as the issue title, with an empty body.

image

Proposal

We should improve the content within these issues, likely by setting the annotations that an external Prometheus server can use as well as noted here: https://gitlab.com/gitlab-org/gitlab-ee/issues/4925#proposal

  • title - annotations/title or annotations/summary
    • If it does not exist, build title out of <receiver>: <startsAt> just to have something that works out of the box
  • description - annotations/descriptions
    • Also include any other annotations included as well, for example severity, runbook, etc. We can do special things with these later

We should also make sure these annotations are documented: https://docs.gitlab.com/ee/user/project/integrations/prometheus.html#taking-action-on-an-alert-ultimate

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references