feat(observability): include registry endpoint in k8s health monitoring

This commit is contained in:
Ashwin Kumar Sivakumar 2026-04-13 23:26:59 +05:30
parent fa005ba881
commit 3c521635d4

View file

@ -64,6 +64,8 @@ spec:
err = str(e) err = str(e)
except Exception as e: except Exception as e:
err = str(e) err = str(e)
if name == "registry-svc" and status in (200, 401):
ok = True
latency_ms = int((time.time() - start) * 1000) latency_ms = int((time.time() - start) * 1000)
return { return {
"kind": "endpoint", "kind": "endpoint",
@ -133,6 +135,7 @@ spec:
("frontend-svc", "http://nxtgauge-frontend-solid.nxtgauge.svc.cluster.local/"), ("frontend-svc", "http://nxtgauge-frontend-solid.nxtgauge.svc.cluster.local/"),
("admin-svc", "http://nxtgauge-admin-solid.nxtgauge.svc.cluster.local/"), ("admin-svc", "http://nxtgauge-admin-solid.nxtgauge.svc.cluster.local/"),
("api-gateway-svc", "http://nxtgauge-rust-gateway.nxtgauge.svc.cluster.local:9100/health"), ("api-gateway-svc", "http://nxtgauge-rust-gateway.nxtgauge.svc.cluster.local:9100/health"),
("registry-svc", "http://docker-registry.registry.svc.cluster.local:5000/v2/"),
("woodpecker-svc", "http://woodpecker-server.woodpecker.svc.cluster.local/"), ("woodpecker-svc", "http://woodpecker-server.woodpecker.svc.cluster.local/"),
("argocd-metrics", "http://argocd-server-metrics.argocd.svc.cluster.local:8083/metrics"), ("argocd-metrics", "http://argocd-server-metrics.argocd.svc.cluster.local:8083/metrics"),
("openobserve-svc", "http://o2-openobserve-standalone.openobserve.svc.cluster.local:5080/healthz"), ("openobserve-svc", "http://o2-openobserve-standalone.openobserve.svc.cluster.local:5080/healthz"),