[ci skip] fix post-NFS-migration issues: MySQL GR, Loki, grampsweb, alerts
- Loki: reduce memory limit from 6Gi to 4Gi (within LimitRange max) - Grampsweb: increase memory to 2Gi (was OOMKilled at 512Mi) - Fix PostgreSQLDown alert: check pod readiness instead of deployment - Fix MySQLDown alert: check StatefulSet replicas instead of deployment - Fix RedisDown alert: check StatefulSet replicas instead of deployment - Fix NFSServerUnresponsive: aggregate all NFS versions cluster-wide - Fix Uptime Kuma healthcheck: handle nested list heartbeat format - Update etcd backup image to registry.k8s.io/etcd:3.6.5-0
This commit is contained in:
parent
946e6f14be
commit
87ef313888
6 changed files with 44 additions and 15 deletions
|
|
@ -618,7 +618,11 @@ try:
|
|||
for mid, name in id_to_name.items():
|
||||
beats = heartbeats.get(mid, [])
|
||||
if beats:
|
||||
status = beats[-1].get("status", 0)
|
||||
last_beat = beats[-1]
|
||||
# Handle nested lists (some monitors return list of lists)
|
||||
if isinstance(last_beat, list):
|
||||
last_beat = last_beat[-1] if last_beat else {}
|
||||
status = last_beat.get("status", 0) if isinstance(last_beat, dict) else 0
|
||||
if status == 1:
|
||||
up_count += 1
|
||||
elif status == 3:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue