alertmanager-webhook发送告警&恢复信息的请求体

警告
本文最后更新于 2020-12-31 10:21,文中内容可能已过时。

告警

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
    "receiver":"ops",
    "status":"firing",
    "alerts":[
        {
            "status":"firing",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-master",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-master",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-master 高于5,当前值:0.56",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"0001-01-01T00:00:00Z",
            "generatorURL":"http://xxx.com/graph?g0.expr=node_load5+%3E+0&g0.tab=1"
        },
        {
            "status":"firing",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-node1",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-node1",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-node1 高于5,当前值:1.42",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"0001-01-01T00:00:00Z",
            "generatorURL":"http://xxx.com/graph?g0.expr=node_load5+%3E+0&g0.tab=1"
        },
        {
            "status":"firing",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-node2",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-node2",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-node2 高于5,当前值:0.16",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"0001-01-01T00:00:00Z",
            "generatorURL":"http://xxx.com/graph?g0.expr=node_load5+%3E+0&g0.tab=1"
        }
    ],
    "groupLabels":{
        "alertname":"load5负载高于5"
    },
    "commonLabels":{
        "alertname":"load5负载高于5",
        "severity":"critical",
        "team":"ops"
    },
    "commonAnnotations":{
        "summary":"load5负载高于5"
    },
    "externalURL":"http://alertmanager-57fffcb99c-kjhcj:9093",
    "version":"4",
    "groupKey":"{}/{severity=\"critical\"}:{alertname=\"load5负载高于5\"}"
}

恢复

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
    "receiver":"ops",
    "status":"resolved",
    "alerts":[
        {
            "status":"resolved",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-master",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-master",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-master 高于5,当前值:0.09",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"2020-12-30T06:07:49.455639638Z",
            "generatorURL":"http://119.3.44.21:30002/graph?g0.expr=node_load5+%3E+5&g0.tab=1"
        },
        {
            "status":"resolved",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-node1",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-node1",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-node1 高于5,当前值:0.61",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"2020-12-30T06:07:49.455639638Z",
            "generatorURL":"http://119.3.44.21:30002/graph?g0.expr=node_load5+%3E+5&g0.tab=1"
        },
        {
            "status":"resolved",
            "labels":{
                "alertname":"load5负载高于5",
                "beta_kubernetes_io_arch":"amd64",
                "beta_kubernetes_io_fluentd_ds_ready":"true",
                "beta_kubernetes_io_os":"linux",
                "instance":"test-k8s-node2",
                "job":"node_exporter",
                "kubernetes_io_arch":"amd64",
                "kubernetes_io_hostname":"test-k8s-node2",
                "kubernetes_io_os":"linux",
                "severity":"critical",
                "team":"ops"
            },
            "annotations":{
                "description":"test-k8s-node2 高于5,当前值:0.4",
                "summary":"load5负载高于5"
            },
            "startsAt":"2020-12-30T05:04:49.455639638Z",
            "endsAt":"2020-12-30T06:07:49.455639638Z",
            "generatorURL":"http://119.3.44.21:30002/graph?g0.expr=node_load5+%3E+5&g0.tab=1"
        }
    ],
    "groupLabels":{
        "alertname":"load5负载高于5"
    },
    "commonLabels":{
        "alertname":"load5负载高于5",
        "severity":"critical",
        "team":"ops"
    },
    "commonAnnotations":{
        "summary":"load5负载高于5"
    },
    "externalURL":"http://alertmanager-57fffcb99c-kjhcj:9093",
    "version":"4",
    "groupKey":"{}/{severity=\"critical\"}:{alertname=\"load5负载高于5\"}"
}
请我喝杯水
SoulChild 微信号 微信号
SoulChild 微信打赏 微信打赏
0%