diff --git a/docs/sources/integrations/alertmanager/index.md b/docs/sources/integrations/alertmanager/index.md index c857b42e..cae15096 100644 --- a/docs/sources/integrations/alertmanager/index.md +++ b/docs/sources/integrations/alertmanager/index.md @@ -123,15 +123,15 @@ Before we were using each alert from AlertManager group as a separate payload: ```json { - "labels": { - "severity": "critical", - "alertname": "InstanceDown" - }, - "annotations": { - "title": "Instance localhost:8081 down", - "description": "Node has been down for more than 1 minute" - }, - ... + "labels": { + "severity": "critical", + "alertname": "InstanceDown" + }, + "annotations": { + "title": "Instance localhost:8081 down", + "description": "Node has been down for more than 1 minute" + }, + ... } ``` @@ -142,12 +142,19 @@ We decided to change this behaviour to respect AlertManager grouping by using Al ```json { - "alerts": [...], - "groupLabels": {"alertname": "InstanceDown"}, - "commonLabels": {"job": "node", "alertname": "InstanceDown"}, - "commonAnnotations": {"description": "Node has been down for more than 1 minute"}, - "groupKey": "{}:{alertname=\"InstanceDown\"}", - ... + "alerts": [...], + "groupLabels": { + "alertname": "InstanceDown" + }, + "commonLabels": { + "job": "node", + "alertname": "InstanceDown" + }, + "commonAnnotations": { + "description": "Node has been down for more than 1 minute" + }, + "groupKey": "{}:{alertname=\"InstanceDown\"}", + ... } ``` diff --git a/docs/sources/integrations/grafana-alerting/index.md b/docs/sources/integrations/grafana-alerting/index.md index cc2af7e2..42b3baee 100644 --- a/docs/sources/integrations/grafana-alerting/index.md +++ b/docs/sources/integrations/grafana-alerting/index.md @@ -79,15 +79,15 @@ Before we were using each alert from Grafana Alerting group as a separate payloa ```json { - "labels": { - "severity": "critical", - "alertname": "InstanceDown" - }, - "annotations": { - "title": "Instance localhost:8081 down", - "description": "Node has been down for more than 1 minute" - }, - ... + "labels": { + "severity": "critical", + "alertname": "InstanceDown" + }, + "annotations": { + "title": "Instance localhost:8081 down", + "description": "Node has been down for more than 1 minute" + }, + ... } ``` @@ -98,12 +98,19 @@ We decided to change this behaviour to respect Grafana Alerting grouping by usin ```json { - "alerts": [...], - "groupLabels": {"alertname": "InstanceDown"}, - "commonLabels": {"job": "node", "alertname": "InstanceDown"}, - "commonAnnotations": {"description": "Node has been down for more than 1 minute"}, - "groupKey": "{}:{alertname=\"InstanceDown\"}", - ... + "alerts": [...], + "groupLabels": { + "alertname": "InstanceDown" + }, + "commonLabels": { + "job": "node", + "alertname": "InstanceDown" + }, + "commonAnnotations": { + "description": "Node has been down for more than 1 minute" + }, + "groupKey": "{}:{alertname=\"InstanceDown\"}", + ... } ```