116. 为项目监控员生成的警报添加标签
Procedure 程序To label alerts for Project Monitors, you must configure the Prometheus Federator Helm chartsvaluessection. This is done by addingadditionalRuleLabelsunderdefaultRuleswithinhelmProjectOperator. You can perform this modification during a new chart installation or by updating a deployed one. This allows you to tag alerts with information likecluster_idfor easy identification and routing to aremote_writeendpoint:要为项目监控器标记警报您必须配置普罗米修斯联邦者舵手图表的值值部分。这是通过在helmProjectOperator的defaultRules下添加additionalRuleLabels来实现的。你可以在新安装图表时进行修改或者通过更新已部署的图表来实现。这允许你用cluster_id等信息标记警报便于识别并路由到remote_write端点span stylecolor:#000000span stylebackground-color:#ffffffspan stylebackground-color:#efefefcodehelmProjectOperator: valuesOverride: defaultRules: additionalRuleLabels: cluster_id: your-cluster-id another: label An example to how multiple labels can be added. /code/span/span/spanVerification: 验证Once the values are updated and the chart is upgraded, you would be able to see thecluster_idfor the alerts once you navigate to theAlertmanagerWindow.一旦数值更新并图表升级你就能在进入AlertManager窗口时看到警报的 cluster_id。Environment 环境Rancher v2.10.x 牧场主 v2.10.x访问Rancher-K8S解决方案博主企业合作伙伴 https://blog.csdn.net/lidw2009
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2479741.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!