1 prometheusalert 模板参数的主要内容是.docVIP

  • 11
  • 0
  • 约小于1千字
  • 约 2页
  • 2023-12-29 发布于宁夏
  • 举报

1 prometheusalert 模板参数的主要内容是.doc

prometheusalert模板参数

Prometheusalert模板参数是用于定义警报规则的关键组件,它们可以帮助您精确地定义何时触发警报以及如何发送警报通知。以下是Prometheusalert模板参数的详细说明:

1.alertname:警报名称

描述:定义警报的名称。

示例:`HighRequestLatency`

2.labels:标签

描述:一组键值对,用于标识触发警报的指标的标签。

示例:`{instance=localhost:9090,job=prometheus}`

3.message:消息

描述:警报触发时发送的消息。可以使用模板标签来插入动态内容。

示例:`Highrequestlatencyon{{$labels.instance}}`

4.instance:实例

描述:触发警报的实例的地址和端口。

示例:`localhost:9090`

5.groupLabels:组标签

描述:一组键值对,用于将多个警报规则分组到一起。

示例:`{cluster=us-east-1,job=prometheus}`

6.commonLabels:共同标签

描述:所有关联警报共享的标签。

示例:`{environment=production}`

7.commonAnnotations:共同注解

描述:所有关联警报共享的注解。

示例

文档评论(0)

1亿VIP精品文档

相关文档