Mercurial > code > home > repos > victoriametrics
comparison alert_rules.py @ 81:5767d3fd170f
denoise
author | drewp@bigasterisk.com |
---|---|
date | Thu, 18 Jul 2024 15:31:42 -0700 |
parents | 298a6f9f7da7 |
children | 5a526531305f |
comparison
equal
deleted
inserted
replaced
80:298a6f9f7da7 | 81:5767d3fd170f |
---|---|
122 "expr": "sum by (namespace, pod, container)(kube_pod_container_status_waiting!=0)", | 122 "expr": "sum by (namespace, pod, container)(kube_pod_container_status_waiting!=0)", |
123 "annotations": { | 123 "annotations": { |
124 "description": '', | 124 "description": '', |
125 "dashboard": "https://bigasterisk.com/k/clusters/local/namespaces/{{ $labels.namespace }}/pods/{{ $labels.pod }}", | 125 "dashboard": "https://bigasterisk.com/k/clusters/local/namespaces/{{ $labels.namespace }}/pods/{{ $labels.pod }}", |
126 }, | 126 }, |
127 "for": "2m", | 127 "for": "10m", |
128 }, | 128 }, |
129 ] | 129 ] |
130 | 130 |
131 | 131 |
132 def allRules(ctx): | 132 def allRules(ctx): |
173 }, | 173 }, |
174 }, | 174 }, |
175 { | 175 { |
176 "alert": "absent_zigbee", | 176 "alert": "absent_zigbee", |
177 "expr": 'absent(container_last_seen{container="zigbee2mqtt"})', | 177 "expr": 'absent(container_last_seen{container="zigbee2mqtt"})', |
178 "for": "10m", | |
178 }, | 179 }, |
179 { | 180 { |
180 "alert": "net_routes_sync", | 181 "alert": "net_routes_sync", |
181 "expr": 'rate(starlette_request_duration_seconds_count{app_name="net_routes",path="/routes"}[5m]) < 1/70', | 182 "expr": 'rate(starlette_request_duration_seconds_count{app_name="net_routes",path="/routes"}[5m]) < 1/70', |
182 "for": "10m", | 183 "for": "10m", |