Fix indentation for AM payload example

This commit is contained in:
Innokentii Konstantinov 2023-08-01 12:34:08 +08:00
parent 945cbba18b
commit a9b311f46b
2 changed files with 44 additions and 30 deletions

View file

@ -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\"}",
...
}
```

View file

@ -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\"}",
...
}
```