grafana / grafana/alerting

[Feature Request] add more alerting "default" templates

Open
#190 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
89
Forks
74
Avg merge
2d 7h
Merged PRs (30d)
8

Description

So, this is what caused me to give up for 1 year to move to grafana unified alerting:

Here is a default slack notification from grafana 8 with a basic alert:
![image](https://github.com/grafana/alerting/assets/54783141/27ed09c9-af31-4ed8-a53f-98c69989d750)
This shows in very clear ways:
- where this happened
- which alert
- the value that broke the threshold
All done by defining slack as destination and creating a simple alert.

While the new alerting:
If I do the same, I get an ugly alert

After working a lot, I managed to implement a generic template ... but I need to define each alert to emit the exact right data.
This is quite brittle and quite hard to maintain when having thousands of alerts.

=> would it be possible to see if a default template could be added that would look like the old one ? ( I guess it might be difficult - so maybe just for "classic_conditions" alerts?)
We could then define a receiver for those alerts, making life so much easier for people starting with grafana alerting or migrating

Contributor guide

Open the contributing guide

Research direction

Start by locating the default notification-template handling and the code paths for classic_conditions alerts and receivers. Compare the current output with the linked Grafana 8 example and determine the required default fields. Done means a maintainable default template is defined for the requested alert type and its rendered notification is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.