【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
本文详细介绍了Prometheus Alertmanager的告警模板和数据结构,包括Status、Labels、Annotations等字段的含义,并提供了示例。Labels是 Prometheus web上告警时的标签,而Annotations用于附加更丰富的信息。此外,还提到了StartsAt和EndsAt字段,分别表示告警开始和结束的时间。
239

被折叠的 条评论
为什么被折叠?



