mirror of
https://gitverse.ru/kpa39l/monitoring.git
synced 2026-09-29 09:55:09 +00:00
Этап 6: починка NO DATA в Grafana (3 причины)+relabel instance→hostname; исправлены имена garage-метрик в панелях и алертах; опыт в EXPERIENCE.md
This commit is contained in:
+46
-33
@@ -1,34 +1,47 @@
|
||||
groups:
|
||||
- name: garage
|
||||
rules:
|
||||
- alert: GarageNodeDown
|
||||
expr: up{job="garage"} == 0
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: "Garage node {{ $labels.instance }} is down"
|
||||
|
||||
- alert: GarageNoQuorum
|
||||
expr: (count(up{job="garage"} == 1) < 2)
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: "Garage cluster lost quorum (<2 nodes up)"
|
||||
|
||||
- alert: GarageResyncErrors
|
||||
expr: garage_block_resync_error_count > 0
|
||||
for: 10m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: "Garage resync errors on {{ $labels.instance }}"
|
||||
|
||||
- alert: GarageNodeUnstable
|
||||
expr: garage_rpc_node_health_is_up == 0
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: "Garage RPC health of some node is down"
|
||||
- name: garage
|
||||
rules:
|
||||
- alert: GarageNodeDown
|
||||
expr: up{job="garage"} == 0
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Garage node {{ $labels.instance }} is down
|
||||
- alert: GarageNoQuorum
|
||||
expr: (count(up{job="garage"} == 1) < 2)
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: Garage cluster lost quorum (<2 nodes up)
|
||||
- alert: GarageResyncErrors
|
||||
expr: block_resync_errored_blocks > 0
|
||||
for: 10m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Garage resync errors on {{ $labels.instance }}
|
||||
- alert: GarageNodeUnstable
|
||||
expr: cluster_layout_node_connected == 0
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: Garage RPC health of some node is down
|
||||
- name: tproxy
|
||||
rules:
|
||||
- alert: TProxyDown
|
||||
expr: up{job="tproxy"} == 0
|
||||
for: 2m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: tproxy-server (vps03) is down or unreachable
|
||||
- alert: TProxyBackendErrors
|
||||
expr: increase(tproxy_backend_dial_failures_total[5m]) > 0
|
||||
for: 10m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: tproxy-server backend dial failures (MTProxy unreachable)
|
||||
|
||||
Reference in New Issue
Block a user