Severity and state mappings for Grafana v8.x
Alert priority and resolution state mapping between Grafana and Incident Response.
Grafana alert priority mapping
Grafana’s alert priority is based on two fields in the payload. The fields of interest
are:
alerts[x].labels.severity
alerts[x].labels.status
If you provide severity as a custom label in an alert rule, Grafana picks up the severity
field value from payload. If severity is not added as a label, then severity is set as per
the alert state.
Alert state | Severity state |
---|---|
Firing | P2-MAJOR |
Resolved | CLEAR |
Grafana payload field | Grafana payload value | Incident Response alert priority value |
---|---|---|
severity | 0 | CLEAR |
1 | P1 - CRITICAL | |
2 | P2 - MAJOR | |
3 | P3 - MINOR | |
4 | P4 - WARNING | |
5 | P5 - OK |
Grafana resolution state mapping
The field of interest is: alerts[x].labels.status
Grafana payload field | Grafana payload value | Incident Response alert state value |
---|---|---|
state | firing | New |
resolved | Closed |
Note: If you require any other severity and state mappings, use the
Generic webhook integration.