浏览代码

Adding a extra line in prometheus-alert-rule.yaml

Raghunandana S K 4 年之前
父节点
当前提交
1cfda0bb98

+ 3 - 4
tools/kubernetes/helm/hue/templates/prometheus-alert-rule.yaml

@@ -5,7 +5,7 @@ metadata:
   labels:
   labels:
     prometheus: example
     prometheus: example
     role: alert-rules
     role: alert-rules
-  name: prometheus-example-rules
+  name: hue
 spec:
 spec:
   groups:
   groups:
     - name: hue-pod-monitor.alert.rules
     - name: hue-pod-monitor.alert.rules
@@ -14,9 +14,8 @@ spec:
         expr: sum(up{job="hue",namespace="data-platform-staging"}) < 2 #Based on the replicas mentioned in values.yaml
         expr: sum(up{job="hue",namespace="data-platform-staging"}) < 2 #Based on the replicas mentioned in values.yaml
         for: 30m #Change this based on your SLA
         for: 30m #Change this based on your SLA
         labels:
         labels:
-        #Labels required for your alert recognition 
           severity: High
           severity: High
         annotations:
         annotations:
-          summary: Hue pods are down 
-          impact: Users shall not be able to query via hue webui
+          summary: Some Hue pods are down
+          impact: Users might not be able to query via Hue Web UI
 {{ end }}
 {{ end }}

+ 1 - 1
tools/kubernetes/helm/hue/values.yaml

@@ -45,7 +45,7 @@ websocket:
   replicas: 1
   replicas: 1
 monitoring:
 monitoring:
   enabled: false
   enabled: false
-alertrule:
+alerting:
   enabled: false
   enabled: false
 tracing:
 tracing:
   enabled: false
   enabled: false