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