Repository navigation
Description
Beyond Kubernetes itself, Prometheus scraped only Qdrant and the OpenTelemetry collector, and both scrape jobs lived in the kube-prometheus-stack values that #734 removed; the Prometheus and Alloy values that replaced them define neither. These run unmonitored:
- ArgoCD, which has built-in metrics endpoints;
- cloudflared;
- Valkey;
- the image registry;
- fluent-bit, Loki and Jaeger themselves;
- Qdrant and the OpenTelemetry collector.
Deliverables
- A ServiceMonitor or exporter for each, using the component's own metrics endpoint where it has one: ArgoCD, cloudflared, the registry, fluent-bit, Loki, Jaeger, the OpenTelemetry collector. Qdrant needs an authenticated scrape and is feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823. A maintained exporter otherwise: Valkey. Squid was removed in feat(k8s): modernize monitoring stack, llm profiles, traefik routing, and remove squid proxy #734, so it needs no exporter.
- Dashboards or alerts where they matter: ArgoCD sync and health, tunnel health, cache errors.
Monitoring cleanup amendment (2026-10-03): scope update
Live targets show that some components listed as unmonitored are scraped today, and others move to chart features in the monitoring cleanup (#1128):
- cloudflared (2 pods) and the otel collector are scraped by the server's
kubernetes-podsjob. fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 moves cloudflared to k8s-monitoringannotationAutodiscoveryand keeps the collector on the server by design. - Loki is scraped without an allow list. fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 moves it to
integrations.loki. - feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 scrapes Alloy, Grafana and Pyroscope.
- fluent-bit goes with fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548.
- The trace backend becomes Tempo (feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135), scraped by
integrations.tempo. - Qdrant is feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823. CoreDNS is feat(k8s): coredns metrics and a coredns dashboard #822 (its scrape is fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's).
Remaining here: ArgoCD, Valkey (maintained exporter) and the registry, plus the ArgoCD sync, tunnel health and cache-error dashboards and alerts.
Acceptance criteria (added).
- New scrapes use k8s-monitoring features (
annotationAutodiscovery,integrations, or a ServiceMonitor throughprometheusOperatorObjects), not server-side scrape jobs. Annotations are used only for a documented exception, as fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's ownership table records them. - Each new target has exactly one scrape owner, and each new scrape port has exactly one monitoring egress rule, under fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's two tests.
Grouping. This item is a child of #1128 and lands after #1130. It is no longer the parent of #822 and #823; both are children of #1128. The scrape #890 needs comes from #1131, not from this item.
Proposed design
Problem statement
The platform lacks comprehensive monitoring for several key components beyond Kubernetes itself, including ArgoCD, cloudflared, Valkey, the image registry, fluent-bit, Loki, Jaeger, and Qdrant. This issue aims to implement proper metrics collection and dashboards for these components using k8s-monitoring features.
Acceptance criteria
- Criterion 1: Each new target has exactly one scrape owner and each scrape port has exactly one monitoring egress rule
Verification: Verify that the Prometheus configuration in k8s-monitoring uses annotationAutodiscovery, integrations, or prometheusOperatorObjects for new scrapes, and check that no duplicate or conflicting scrape configurations exist. - Criterion 2: New scrapes use k8s-monitoring features instead of server-side scrape jobs
Verification: Examine the monitoring configuration files to confirm that new scrape jobs are defined using k8s-monitoring features rather than being added directly to the Prometheus server's configuration. - Criterion 3: ArgoCD, Valkey, and registry components have appropriate monitoring with dashboards or alerts
Verification: Check that ServiceMonitors or exporters exist for ArgoCD, Valkey, and the image registry, and verify that dashboards or alerts are implemented for sync status, health, tunnel health, and cache errors.
Key questions
- What monitoring features should be used for new scrapes?: New scrapes should use k8s-monitoring features such as annotationAutodiscovery, integrations, or ServiceMonitors through prometheusOperatorObjects, not server-side scrape jobs. [sources: k8s/monitoring/k8s-monitoring-values.yaml:146]
- Should annotations be used for all new monitoring targets?: Annotations should only be used for documented exceptions, as specified in fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's ownership table. [sources: docs/agent/tasks/task-1130-prometheus-scrapes-itself-and-the-collector.md:24]
Open questions
- What specific components need to be monitored beyond Kubernetes? (missing verified source)
- Which components have built-in metrics endpoints and which need exporters? (missing verified source)
- What dashboards or alerts are required for ArgoCD? (missing verified source)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs(roadmap): plan LLM load balance and cluster observability integr…
dan-petty commentedon Sep 30, 2026
Moved from v0.2.25 to the backlog. v0.2.25 is capped at 12 items (#740), and only the next two planned releases keep a milestone (#739), so P2 items wait in the backlog until reprioritization pulls them in.
dan-petty commentedon Oct 18, 2026
Update 2026-10-18 from a read-only cluster audit (main 3dd7fa6). These details are for the Argo CD part of this item.
list_prometheus_metric_namesfor^argocd_.*over 7d returns nothing, andup{namespace="argocd"}is empty. The pods declare their metrics ports: application-controller 8082, server 8083 (--metrics-port=8083), repo-server 8084, applicationset-controller 8080, image-updater 8443.k8s/monitoring/networkpolicy.yamlrestricts monitoring's egress and admits none of these toward argocd, so each scrape port needs its egress rule, as this item's criteria already require.k8s-monitoring-values.yaml:146-148already enablesprometheusOperatorObjects, so turning on the argo-cd chart's*.metrics.serviceMonitor.enabledis discovered without new Alloy config.argocdnamespace'sargocd-default-perimeteris not live on the homelab (filed separately: deploy-stack skips it on an Argo CD-managed cluster and no Application syncs it). When it lands it admits monitoring on 8082/8084/9121 only, so 8083 (server), 8080 (applicationset) and 8443 (image-updater) must be added with the scrape.k8s-monitoring's sync ran from 2026-10-11 to 2026-10-17, waiting on the node-exporter DaemonSet on two dead nodes.argocd_app_infocarries anoperationlabel while an operation runs, which is enough to alert on one running for more than about an hour.devopshas hadautomated.enabled: falsesince 2026-10-11 (the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 stop that was never undone; filed separately).argocd_app_info{autosync_enabled="false"}would show it.argocd_image_updater_*). It reported Ready while it skipped thedevopsimage for six days (filed separately). A scrape plus an alert on zero managed images would catch that class.feat(k8s): monitor ArgoCD, Valkey, and registry and alert on service …
dan-petty commentedon Oct 21, 2026
Checked on
release/v0.2.38at 14d4490, 2026-10-22. What the amendment left here is delivered by #1789 (Part 7 of #1128):ServiceMonitors for the controller (8082), server (8083), repo-server (8084) and the Redis exporter (9121).redis-exportersidecar, scraped throughannotationAutodiscovery.annotationAutodiscovery.test_each_annotated_component_has_one_scrape_ownerandtest_every_scrape_port_has_one_egress_ruleintests/test_k8s_monitoring_integration.py.homelab-servicesrule group holdsArgoCdApplicationOutOfSync,ArgoCdApplicationUnhealthy,CloudflareTunnelDegradedandValkeyCacheErrors. The deliverable asks for "dashboards or alerts".No dashboard for Argo CD sync or for Valkey cache errors exists, and the tunnel's is
ingress-tunnel.json. If a dashboard is wanted beyond the alerts, it is a new item with its own capture fixture for the dashboard metric test.Pending a person: after the next deploy, the four alerts' expressions return series, for example
argocd_app_infoandredis_up.feat(k8s): alert on Argo CD disabled autosync and stuck operations (C…
dan-petty commentedon Oct 21, 2026
What changed
#1797, merged into
release/v0.2.38as d09a028.5 file(s) changed.
How it was verified
Check runs at 66887af:
Acceptance Criteria of
docs/agent/tasks/task-551-metrics-for-the-rest-of-the-platform.md:k8s-monitoringfeatures (annotationAutodiscoveryforvalkeyandregistry, and chartServiceMonitors throughprometheusOperatorObjectsforargocd), not server-side scrape jobs (tests/test_k8s_monitoring_integration.py).test_each_annotated_component_has_one_scrape_owner), and each new scrape port has exactly one monitoring egress rule (test_every_scrape_port_has_one_egress_rule).homelab-servicesalerts cover Argo CD sync/health/autosync/stuck operations, Cloudflare Tunnel HA connectivity, and Valkey cache errors (tests/test_k8s_monitoring_alerting.py).homelab-servicesalerts' expressions return series, for exampleargocd_app_infoandredis_up.feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)