【Prometheus Alertmanager告警模板_Blue summer的博客-CSDN博客】
原文:https://blog.csdn.net/u010039418/article/details/111369486
Prometheus role模板:
https://blog.csdn.net/yeqinghanwu/article/details/126367493
3、Alert数据结构
告警的数据结构主要如下,
Name Type Notes
Status string Defines whether or not the alert is resolved or currently firing.
Labels KV A set of labels to be attached to the alert.
Annotations KV A set of annotations for the alert.
StartsAt time.Time The time the alert started firing. If omitted, the current time is assigned by the Alertmanager.
EndsAt time.Time Only set if the end time of an alert is known. Otherwise set to a configurable timeout period from the time since the last alert was received.
GeneratorURL string A backlink which identifies the causing entity of this alert.
3.1 Labels
Labels为prometheus web上告警时的label,如下
————————————————
版权声明:本文为CSDN博主「Blue summer」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u010039418/article/details/111369486