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