Repository navigation
feat(monitoring): scrape the gateway database and alert on its size - #5048
Conversation
The gateway refuses each virtual key while its database is down, and nothing measured the database. PodMonitor llm-gateway-db brings the series of its CloudNativePG exporter, and the database perimeter and the monitoring egress admit TCP 9187. Group llm-gateway-db warns when the exporter is down, when the connections pass 80% of max_connections, and when the databases and the WAL pass 80% of the 5Gi claim, each with promtool cases. Grafana provisions the upstream CloudNativePG dashboard for both CloudNativePG Clusters, and the chart's unused copy in cnpg-system turns off. The gateway deletes spend logs older than 30 days. The dashboard linter reads a target of the expression datasource by its expression, so the upstream dashboard lints clean. Refs #4994
|
Evidence for this pull request. Fail-to-pass (
Local checks on the head (scoped, the host is loaded):
Cluster facts (read only): CloudNativePG 1.30.1 (chart 0.29.1); LiteLLM After the merge (Argo CD): |
The gateway refuses each virtual key while its database is down, and nothing measured that database. PodMonitor
llm-gateway-dbbrings the series of its CloudNativePG exporter, and the database perimeter and the egress ofmonitoringadmit TCP 9187. Groupllm-gateway-dbwarns when the exporter is down, when the client connections pass 80% ofmax_connections, and when the databases and the WAL pass 80% of the 5Gi claim, each rule with promtool cases. Grafana provisions the upstream CloudNativePG dashboard for both CloudNativePG Clusters, and the unused copy of the chart incnpg-systemturns off. The gateway deletes spend logs older than 30 days. The dashboard linter reads a target of the expression datasource by itsexpression, so the upstream dashboard lints clean.Closes #4994
Change:
openspec/changes/archive/2026-11-12-4994-scrape-the-gateway-database-and-alert/