Repository navigation
Description
Ready: implementation plan (refined 2026-10-17 at 3dd7fa6)
This section supersedes any text below that conflicts with it.
Decisions
- Parent or delivery: this issue stays a tracking parent with no PR of its own. Its work is done by its children.
- Is fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 a child?: yes, for its ServiceMonitor move.
k8s/monitoring/k8s-monitoring-values.yaml:307-323renders the gateway's ServiceMonitor throughextraObjects, so the k8s-monitoring release this stack owns also owns that object, and fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 moves it to the llm stack. fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 takes fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795's place as the last step. Whether fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 splits its GPU placement work from the move is fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367's own refinement. - First child: feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 merges first and feat(k8s): alert when pod logs stop reaching loki #890 right after it. feat(k8s): alert when pod logs stop reaching loki #890's only new signal,
loki_write_sent_entries_total, comes from feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131'sintegrations.alloy, and feat(k8s): alert when pod logs stop reaching loki #890 is the one child in v0.2.37. - feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's
AlloyRemoteWriteSamplesFailedbefore fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132: keepfor: 15mas feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 specifies. It fires until fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 lands because samples really are lost. feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's own person check already expects that, and a longerforwould hide the loss. - Does the old step order still hold now that feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 landed before feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 and fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132?: yes, for the children still open. feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135's constraints applied to feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 itself and ended when it merged. feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 and fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 rebase on what feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 added:
integrations.tempoatk8s/monitoring/k8s-monitoring-values.yaml:192and theotlp_grpc/tempoexporter atk8s/otel/values.yaml:99. - fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's test and native histograms: fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's structural tuple also asserts that
enable-feature: native-histograms(k8s/monitoring/prometheus-values.yaml:16) stays set. This is the stricter option, and the assertion costs one tuple field. - Re-measuring
target_infoout-of-order samples after fix(telemetry): delta metrics from one process can reach the collector out of order #792: no separate step. feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's scrape makesprometheus_remote_storage_samples_failed_total{job="integrations/alloy"}visible, and its alert is the measurement. fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 proceeds whatever the result, because the out-of-order window is the receiver's half of the fix (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, "Key questions"). fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's 24h person check confirms it. - fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's
debugremoval: it covers all three pipelines, including the traces pipeline feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 added (k8s/otel/values.yaml:99,:104,:109). - Loki canary between feat(k8s): alert when pod logs stop reaching loki #890 and fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133: fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133 removes the canary and feat(k8s): alert when pod logs stop reaching loki #890 does not bring it back. The canary measures Loki, not the shipper (feat(k8s): alert when pod logs stop reaching loki #890's body).
PodLogsNotShippedon Alloy's counters and fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130'sintegrations.loki(k8s/monitoring/k8s-monitoring-values.yaml:182) cover shipping and Loki health. feat(k8s): alert when pod logs stop reaching loki #890 and fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133 then share no file. - Closing: GitHub does not close a parent from its children, and only the delivered issue may follow a closing keyword in a PR body. A person closes this issue once fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 merges and the person checks below hold.
Delivery
This parent has no PR. Each child is one PR, merged in this order. Each later PR rebases on the earlier ones that share its files.
- feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 (S): open, Ready, no release. It adds the
alloyandgrafanaintegrations, enables Pyroscope's ServiceMonitor, adds thehomelab-telemetry-pipelinerule group and adds the first chart allow-list fixture. - feat(k8s): alert when pod logs stop reaching loki #890 (S): open, v0.2.37. It adds
PodLogsNotShippedbeside feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's group and keeps noPodLogsDropped, which would duplicate feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131'sAlloyLogEntriesDropped. - fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 (S): open, Ready, no release. It adds the out-of-order window, the one-hop remote write and the collector trim. It makes
AlloyRemoteWriteSamplesFailedquiet. - fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133 (S): open, Ready, no release. It shares no file with fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 or feat(k8s): alert when pod logs stop reaching loki #890, so it may merge before, after or alongside fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132. It must merge after feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 because both edit
k8s/monitoring/pyroscope-values.yaml. - feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134 (M): open, no release. It comes after feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 (its alert uses Pyroscope's ServiceMonitor) and after fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133 (same
pyroscope-values.yaml). - feat(k8s): coredns metrics and a coredns dashboard #822 (S/M): open, no release. It adds the CoreDNS dashboard and alert on fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's
integrations/kubernetes/kube-dnsjob. It comes after feat(k8s): alert when pod logs stop reaching loki #890 because both add rules tok8s/monitoring/prometheus-values.yaml. - fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136 (M): open, no release. It comes after feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, whose fixture format it reuses. If feat(k8s): coredns metrics and a coredns dashboard #822's dashboard lands first, fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136's gate covers that dashboard too.
- Metrics for the rest of the platform #551 (M): open, v0.2.38. It adds the remaining platform scrapes to the
integrationsblock and its egress rules. - fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 (S/M): open, no release. It goes last because it deletes
extraObjectsfromk8s/monitoring/k8s-monitoring-values.yaml, after every other child that edits that file.
Acceptance criteria
- feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, feat(k8s): alert when pod logs stop reaching loki #890, fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134, feat(k8s): coredns metrics and a coredns dashboard #822, fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136, Metrics for the rest of the platform #551 and fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367 are closed by merged PRs, in the order above, or with an order change recorded on this issue.
- Already closed by merged PRs: fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129, fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548, fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104, fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795 and feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823.
- Each child carries its own
changelog.d/<n>.md. No child editsCHANGELOG.mdordocs/ROADMAP.md. - Pending a person: after the last child deploys, the live checks in this issue's own "Acceptance criteria" hold (no legacy scrape jobs in
count by (job) (up),prometheus_tsdb_head_seriesbelow 30k, Node Exporter Full and the k8s views show data, nofluent-bit,loki-canaryorpyroscope-alloyworkloads, every Grafana datasource healthy, only chart-owned Services inmonitoring, andk8s/README.md's Scrape Ownership table matches the cluster).
Current references
- The integrations block, without
alloyorgrafana(feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131):k8s/monitoring/k8s-monitoring-values.yaml:177 prometheusMetricsReceiverstill enabled (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132):k8s/monitoring/k8s-monitoring-values.yaml:150-152- The gateway ServiceMonitor in
extraObjects(fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367):k8s/monitoring/k8s-monitoring-values.yaml:307-323 - The collector's remote write through Alloy (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132):
k8s/otel/values.yaml:87-88 - The
debugexporter on every pipeline (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132):k8s/otel/values.yaml:99,:104,:109 - Native histograms flag (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's test):
k8s/monitoring/prometheus-values.yaml:16 - Alert rule groups (feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, feat(k8s): alert when pod logs stop reaching loki #890, feat(k8s): coredns metrics and a coredns dashboard #822):
k8s/monitoring/prometheus-values.yaml:154 - Pyroscope's bundled Alloy (feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134):
k8s/monitoring/pyroscope-values.yaml:38-39 - Pyroscope's ServiceMonitor, still off (feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131):
k8s/monitoring/pyroscope-values.yaml:46-47 - Grafana's datasource sidecar (fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133):
k8s/monitoring/grafana-values.yaml:122 - Loki canary (fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133):
k8s/logging/loki-values.yamlsets nolokiCanarykey, so the chart default runs it. - Scrape Ownership table:
k8s/README.md:151 - Alerting and integration tests the children extend:
tests/test_k8s_monitoring_alerting.py,tests/test_k8s_monitoring_integration.py k8s/monitoring/service-aliases.yamlno longer exists (fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104).
Dependencies and order
- fix(telemetry): delta metrics from one process can reach the collector out of order #792 (sender-side ordering): closed in v0.2.36. fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 no longer waits on it.
- feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (GitOps): closed. Argo CD applies each child's values on sync after the merge to
main, so children need no deploy-stack step. - v0.2.37 holds only feat(k8s): alert when pod logs stop reaching loki #890 of these children. feat(k8s): alert when pod logs stop reaching loki #890 needs feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, so feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 must be placed in v0.2.37 too, or feat(k8s): alert when pod logs stop reaching loki #890 moves to feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's release. The roadmap tooling places it.
- fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132 should follow feat(k8s): alert when pod logs stop reaching loki #890 closely, because
AlloyRemoteWriteSamplesFailedfires from feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's merge until fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132's.
Problem
An audit of the monitoring stack on 2026-10-03 read the repo at release/v0.2.25, the pulled charts, and the live cluster (read-only). The stack is half-migrated to the Grafana k8s-monitoring chart (#734, #737).
- Collection is duplicated or forked:
- two log shippers (fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548);
- two scrapers with two conventions, where the server's unfiltered API-server job holds 76% of all series;
- two Alloy deployments at different versions (the pyroscope chart's bundled one);
- three Services in front of one Prometheus pod;
- a 4-pod "singleton".
- Values don't take effect as written:
- node-exporter's allow list was narrowed by a flag meant to widen it, so Node Exporter Full has had no data since 2026-10-02;
- chart defaults run a Loki canary, debug logging and a datasource sidecar that nobody reads, and Loki warns on every query that deletion is unavailable.
- Chart integrations are unused. Nothing scrapes Alloy, Grafana or Pyroscope, so 73k dropped samples went unseen. Profiling covers only the profiler. Traces are unreadable in Grafana and the CLI, and lost on restart.
- The live cluster drifts from git. The monitoring perimeter is pre-fix(k8s): monitoring ingress admits 0.0.0.0/0, qdrant ignores its security context, and single-ollama leftovers remain #953 (fix(k8s): deploy-stack applies the monitoring namespace perimeter #913), and kube-prometheus-stack objects are still left over.
This parent issue groups the cleanup. Each child is one pull request with its own acceptance criteria.
Acceptance criteria
Children, merged in the order under "Strategic alignment":
- fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129: k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read (P1, S).
- fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130: the Prometheus server scrapes only itself and the otel collector; k8s-monitoring discovers every other target, with one scrape owner and one egress rule per scrape port (P1, M).
- feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131: Alloy, Grafana and Pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts (P2, S).
- fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132: devops-cli metrics reach Prometheus in one hop, a late sample no longer drops a batch, and the collector runs only what its pipelines use (P2, S).
- fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133: chart defaults stop writing logs and watches nobody reads (Loki canary and per-query delete warnings, Pyroscope debug, Grafana datasource sidecar), and Loki admits only Grafana and Alloy from
monitoring(P2, S). - feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134: profiles come from k8s-monitoring's profiling feature for every workload (P2, M).
- feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135: traces are stored in Tempo on a volume, and Grafana and devops-cli read them (P2, L).
- fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136: the Kubernetes, node and ingress dashboards query only served series, under the capture gate (P3, M).
- fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548: pod logs reach Loki once (single shipper; amended with the 2026-10-03 numbers and the canary criterion).
- fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104: every alias Service in
k8s/monitoring/service-aliases.yamlis removed (it absorbs chore(k8s): drop the kube-prometheus-stack service aliases #818, widened to theprometheusalias and the live kube-prometheus-stack leftovers). - fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795: the gateway policy is applied, and the gateway's ServiceMonitor moves to the llm stack (amended).
- feat(k8s): coredns metrics and a coredns dashboard #822: the CoreDNS dashboard and alerts; fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 delivers the scrape (amended).
- feat(k8s): alert when pod logs stop reaching loki #890: an alert when pod logs stop reaching Loki, on feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's Alloy series (amended).
- Metrics for the rest of the platform #551: the remaining platform scrapes (ArgoCD, Valkey, the registry) through k8s-monitoring features (amended).
- feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823: Qdrant metrics through an authenticated scrape, under the same scrape rule.
On the live cluster, after the last deploy:
-
count by (job) (up)lists nokubernetes-api-servers,kubernetes-service-endpoints*,kubernetes-pods-slow,kubernetes-servicesorprometheus-pushgatewayjob. -
prometheus_tsdb_head_seriesis below 30k (68.9k on 2026-10-03). - Node Exporter Full and the k8s views show data.
-
kubectl get ds -Ashows nofluent-bit,loki-canaryork8s-monitoring-alloy-singletonDaemonSet, andkubectl get sts -n monitoring pyroscope-alloyreturns NotFound. - Grafana's health check passes for every provisioned datasource.
-
kubectl get svc -n monitoringlists only chart-owned Services. -
k8s/README.md's component-ownership table (fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130) matches the deployed stack.
Key questions
- Who owns the alias Services and the kube-prometheus-stack leftovers? Decided in this grouping: fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104. chore(k8s): drop the kube-prometheus-stack service aliases #818 is merged into it, with the audit's widening: every consumer of the
prometheusalias moves toprometheus-server, noserver.fullnameOverride(it would orphan theprometheus-serverPVC), and the one-time deletion of the leftover admission Secret and kubelet Service/Endpoints. There is no separate alias item in this group. - Is Metrics for the rest of the platform #551 still a parent for the platform scrapes? Decided in this grouping: no. This issue is the parent; Metrics for the rest of the platform #551, feat(k8s): coredns metrics and a coredns dashboard #822 and feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823 are its children. The rule that Metrics for the rest of the platform #551 was to carry (a ServiceMonitor through Alloy or a chart integration by default, annotations only for documented exceptions such as the collector, exactly one scrape owner per target, one monitoring egress rule per scrape port) is fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's, with tests.
- Where does feat(k8s): alert when pod logs stop reaching loki #890's Alloy scrape come from? feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 (
integrations.alloy), not Metrics for the rest of the platform #551. feat(k8s): alert when pod logs stop reaching loki #890's alert rules stay in feat(k8s): alert when pod logs stop reaching loki #890. - Does any child depend on feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755? No. Until feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 lands,
devops k8s deploy-stackapplies the values files, and each child has a "pending a person" deploy check. After feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755, Argo CD applies the same files on sync.
Strategic alignment
Order. Shared files decide the order. One PR per row, merged top to bottom; rows in the same step share no file and can run in parallel.
| Step | PRs | Why here |
|---|---|---|
| 1 | #913; #1129; #1133; #548 | Independent surfaces. #913 closes a live exposure. #1129 fixes the P1 regression. #548 and #913 both edit stack_lifecycle.py lists, so whichever merges second rebases. #1133 and #548 can merge in either order because of #548's amended criterion. |
| 2 | #1132 | Must precede #1131's remote-write alert. Edits k8s-monitoring-values.yaml (receiver block) after #1129. |
| 3 | #1130 | After #1129 (same file and the cluster-label convention). Creates the integrations block. Delivers #822's scrape. |
| 4 | #1131, then #890 | Extends #1130's integrations block. Its alert is quiet only after #1132. |
| 5 | #1104, then #1134 | #1134's destination uses the chart's pyroscope Service. #1104 has no order constraint with #1132 and may land earlier; it edits grafana-values.yaml and k8s-monitoring-values.yaml, so whichever of it and #1133/#1135 lands second rebases. |
| 6 | #1135 | After #1132 (k8s/otel/values.yaml) and #1131 (integrations.tempo). |
| 7 | #1136; #795 | #1136 needs #1129's fixture and #1130's scrape owners. #795 removes extraObjects from k8s-monitoring-values.yaml last. |
#551 and #823 follow #1130 (they add scrapes to its integrations and egress rules). #822's dashboard follows #1130.
Files touched by several children, so each later PR rebases on the earlier ones:
k8s/monitoring/k8s-monitoring-values.yaml: fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129, fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130, feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104, feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135, fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795;k8s/monitoring/prometheus-values.yaml: fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130, feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134;k8s/monitoring/grafana-values.yaml: fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135;k8s/monitoring/pyroscope-values.yaml: fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134;k8s/otel/values.yaml: fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135;k8s/logging/loki-values.yamlandk8s/logging/networkpolicy.yaml: fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130, fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548.
No child edits CHANGELOG.md or docs/ROADMAP.md; each carries a changelog.d/ fragment (#933).
GitOps (#755).
- Releases that come and go: feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 adds
tempoand removes thejaegermanifest, and fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548 removesfluent-bit. Whichever of these and feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 lands second updates feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755's per-release Applications, and new releases carry a pinnedversion. - Prune deletes only tracked objects. One-time deletions stay with a person, or with an agent that shows a diff first: the kube-prometheus-stack leftovers and the alias Services (fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104),
podlogs.monitoring.grafana.com(feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134), the oldjaegerDeployment and Service (feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135), and thefluent-bitrelease (fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548). - alloy-operator's
k8s-monitoring-alloy-*releases are not Argo-owned. - Chart pins (feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755) are the refresh trigger for the chart allow-list fixtures (fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129, feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136) and for the collector's image tag (fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132).
PVC data.
- No child renames or recreates an existing claim. fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104 forbids
server.fullnameOverride, which would orphan theprometheus-serverPVC. - feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134's torn-segment recovery backs up Pyroscope's
segments/tree first and keeps the PVC. - feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135 adds a new
local-pathclaim for Tempo. Jaeger held only in-memory data. - fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133 and fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548 remove DaemonSets with no claims.
Owner rules for every child: chart and library features before hand-written config; everything in git and applied by GitOps (#755); PVC data protected; no documentation-only PRs; prioritisation by the roadmap tooling (each child gives priority, value and effort; no milestones here).
Value. A smaller, cheaper and observable monitoring stack built on chart features. It cuts about 50k Prometheus series and about 300 MB a day of unread Loki writes (fluent-bit's duplicate copy, the canary and debug logs), and restores Node Exporter Full, profiling, traces and self-monitoring. Raised on 2026-10-03: further duplication, misconfiguration and missing integration with the Grafana k8s-monitoring Helm charts remain to be cleaned up.
Related, not children: #913 (perimeter; live drift recorded there), #755 (GitOps; chart baseline recorded there), #792 (sender-side ordering; target_info in scope), #408 (expected operator releases, leftover detection), #409 (Tempo ordering), #734/#737 (the migration this finishes), #953, #550, #549/#1094 (alerting the new rules route through), #1031 (moves the service-name constants).
No milestone; the roadmap tooling places the children.
Update 2026-10-08: refinement
Delivered: #548, #913 and #795; #795 handed the ServiceMonitor move (k8s/monitoring/k8s-monitoring-values.yaml:239-255) to #1367. #1104's pyroscope alias is gone, so step 5 no longer orders #1104 before #1134. #755 landed: checks run after the merge to main. #1129 adds no fixture; #1131 and #1136 own them.
Proposed design
Problem statement
The monitoring stack is half-migrated to the Grafana k8s-monitoring chart, leaving duplicated collection (two log shippers, two scrapers, two Alloy deployments, three Services in front of one Prometheus pod), values that do not take effect as written (node-exporter allow list narrowed by a flag meant to widen it, chart defaults running a Loki canary and debug logging nobody reads), unused chart integrations (nothing scrapes Alloy, Grafana or Pyroscope; traces unreadable and lost on restart), and live-cluster drift from git (pre-#953 perimeter, kube-prometheus-stack leftovers). This parent issue groups the cleanup into ordered child pull requests that restore the stack to chart-native shapes, cut roughly 50k Prometheus series and 300 MB/day of unread Loki writes, and bring the live cluster back in line with git.
Acceptance criteria
- Criterion 1: All fifteen children (fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129, fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130, feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131, fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132, fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133, feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134, feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135, fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136, fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548, fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104, fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795, feat(k8s): coredns metrics and a coredns dashboard #822, feat(k8s): alert when pod logs stop reaching loki #890, Metrics for the rest of the platform #551, feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823) are merged in the order specified by the Strategic alignment table, with later PRs rebased on earlier ones where they share files.
Verification: Each child issue is closed with a merged pull request; the merge order matches the seven-step table (step 1 through step 7), and shared-file conflicts (k8s-monitoring-values.yaml, prometheus-values.yaml, grafana-values.yaml, pyroscope-values.yaml, otel/values.yaml, loki-values.yaml, networkpolicy.yaml) show no merge conflicts in the final tree. - Criterion 2: On the live cluster, count by (job) (up) lists no kubernetes-api-servers, kubernetes-service-endpoints*, kubernetes-pods-slow, kubernetes-services or prometheus-pushgateway job.
Verification: Run the PromQL query count by (job) (up) against the Prometheus server and confirm none of the listed job names appear. - Criterion 3: prometheus_tsdb_head_series is below 30k.
Verification: Query prometheus_tsdb_head_series on the live Prometheus; the value is less than 30000. - Criterion 4: Node Exporter Full and the Kubernetes views dashboards show data.
Verification: Open the Node Exporter Full (gnetId 1860) and k8s-views dashboards in Grafana; panels display data rather than 'No data'. - Criterion 5: No fluent-bit, loki-canary or k8s-monitoring-alloy-singleton DaemonSet exists, and the pyroscope-alloy StatefulSet is absent.
Verification: kubectl get ds -A shows none of those DaemonSets; kubectl get sts -n monitoring pyroscope-alloy returns NotFound. - Criterion 6: Grafana's health check passes for every provisioned datasource.
Verification: GET /api/health on the Grafana Service returns status ok, and the datasources page shows all datasources (Prometheus, Loki, Pyroscope, Alertmanager) as healthy. - Criterion 7: kubectl get svc -n monitoring lists only chart-owned Services (no alias Services from service-aliases.yaml).
Verification: kubectl get svc -n monitoring returns only Services created by the prometheus, grafana, pyroscope and k8s-monitoring Helm releases; the prometheus, kube-prometheus-kube-prome-prometheus and kube-prometheus-grafana alias Services are absent. - Criterion 8: k8s/README.md's component-ownership table matches the deployed stack.
Verification: Compare the Scrape Ownership table in k8s/README.md against kubectl get all -n monitoring and helm list -n monitoring; every listed component and its owner match the live cluster.
Key questions
- Who owns the alias Services and the kube-prometheus-stack leftovers?: Decided in this grouping: fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104 owns them. chore(k8s): drop the kube-prometheus-stack service aliases #818 is merged into fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104, with the audit's widening: every consumer of the prometheus alias moves to prometheus-server, no server.fullnameOverride (it would orphan the prometheus-server PVC), and the one-time deletion of the leftover admission Secret and kubelet Service/Endpoints. There is no separate alias item in this group. (proposed) [sources: k8s/monitoring/service-aliases.yaml]
- Is Metrics for the rest of the platform #551 still a parent for the platform scrapes?: Decided in this grouping: no. This issue (refactor(k8s): the monitoring stack runs on k8s-monitoring and chart features, with no duplicate collection, dead defaults or leftovers #1128) is the parent; Metrics for the rest of the platform #551, feat(k8s): coredns metrics and a coredns dashboard #822 and feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823 are its children. The rule that Metrics for the rest of the platform #551 was to carry (a ServiceMonitor through Alloy or a chart integration by default, annotations only for documented exceptions, exactly one scrape owner per target, one monitoring egress rule per scrape port) is fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130's, with tests. (proposed) [sources: k8s/monitoring/k8s-monitoring-values.yaml]
- Where does feat(k8s): alert when pod logs stop reaching loki #890's Alloy scrape come from?: From feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131 (integrations.alloy), not Metrics for the rest of the platform #551. feat(k8s): alert when pod logs stop reaching loki #890's alert rules stay in feat(k8s): alert when pod logs stop reaching loki #890. The integrations block in k8s-monitoring-values.yaml is where Alloy, Grafana and Pyroscope scrapes are added. [sources: k8s/monitoring/k8s-monitoring-values.yaml]
- Does any child depend on feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755?: No. Until feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 landed, devops k8s deploy-stack applied the values files and each child had a 'pending a person' deploy check. After feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755 (which has landed per the 2026-10-08 update), Argo CD applies the same files on sync, so the deploy check is automated. No child is blocked on feat(k8s): argo cd keeps the homelab cluster at the current release branch, with automated sync, prune and self-heal that never delete data #755. (proposed) [sources: k8s/README.md]
Fit
Needs splitting into 15 items:
- fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129: k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read (P1, S)
- fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130: the Prometheus server scrapes only itself and the otel collector; k8s-monitoring discovers every other target, with one scrape owner and one egress rule per scrape port (P1, M)
- feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131: Alloy, Grafana and Pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts (P2, S)
- fix(telemetry): devops-cli metrics reach prometheus in one hop, a late sample no longer drops a whole batch, and the collector runs only what its pipelines use #1132: devops-cli metrics reach Prometheus in one hop, a late sample no longer drops a batch, and the collector runs only what its pipelines use (P2, S)
- fix(k8s): chart defaults stop writing logs and watches nobody reads (loki canary and per-query delete warnings, pyroscope debug logging, grafana's datasource sidecar), and loki admits only grafana and alloy from monitoring #1133: chart defaults stop writing logs and watches nobody reads (Loki canary and per-query delete warnings, Pyroscope debug, Grafana datasource sidecar), and Loki admits only Grafana and Alloy from monitoring (P2, S)
- feat(k8s): profiles come from k8s-monitoring's profiling feature for every workload, and the profiling dashboards list what is profiled #1134: profiles come from k8s-monitoring's profiling feature for every workload (P2, M)
- feat(telemetry): traces are stored in tempo on a volume, and grafana and devops-cli read them, linked to logs and profiles #1135: traces are stored in Tempo on a volume, and Grafana and devops-cli read them (P2, L)
- fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136: the Kubernetes, node and ingress dashboards query only served series, under the capture gate (P3, M)
- fix(k8s): pod logs reach loki once and labelled, with alloy as the only shipper (remove fluent-bit) #548: pod logs reach Loki once (single shipper; amended with the 2026-10-03 numbers and the canary criterion)
- fix(k8s): the pyroscope Service alias collides with the pyroscope Helm release's own Service, so a fresh deploy-stack can't install Pyroscope #1104: every alias Service in k8s/monitoring/service-aliases.yaml is removed (absorbs chore(k8s): drop the kube-prometheus-stack service aliases #818, widened to the prometheus alias and the live kube-prometheus-stack leftovers)
- fix(k8s): deploy-stack applies the llm gateway policy and narrows its egress #795: the gateway policy is applied, and the gateway's ServiceMonitor moves to the llm stack (amended)
- feat(k8s): coredns metrics and a coredns dashboard #822: the CoreDNS dashboard and alerts; fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 delivers the scrape (amended)
- feat(k8s): alert when pod logs stop reaching loki #890: an alert when pod logs stop reaching Loki, on feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131's Alloy series (amended)
- Metrics for the rest of the platform #551: the remaining platform scrapes (ArgoCD, Valkey, the registry) through k8s-monitoring features (amended)
- feat(k8s): qdrant metrics with an authenticated scrape, and its dashboard row restored #823: Qdrant metrics through an authenticated scrape, under the same scrape rule
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 10, 2026
Proposal needs splitting into 15 items at 69c99cf (see proposed design in issue body).
dan-petty commentedon Oct 14, 2026
Moved to the backlog: it was New, not Ready, when v0.2.36 started. (devops roadmap reprioritize)
dan-petty commentedon Oct 17, 2026
Readiness check for v0.2.37, against
release/v0.2.36at 22d8748. Line numbers are at that commit.Status: partly done. This is a parent tracking issue with no slice of its own.
Children
Still in the files
k8s/monitoring/k8s-monitoring-values.yaml:177lack alloy, grafana and pyroscope.pyroscope-values.yamlenables its bundled Alloy.grafana-values.yaml:122).prometheusMetricsReceiveris on (k8s-monitoring-values.yaml:150).k8s/otel/values.yaml:87-88), with the debug exporter in every pipeline.Partly fixed by #792: the sender side only, plus native histograms at
prometheus-values.yaml:16. #1132'sout_of_order_time_window, its one-hop remote write and its collector trim are still missing.References that moved
k8s-monitoring-values.yaml:239-255is now at:307-323.service-aliases.yamlis gone.k8s/README.md:151.The live checks need cluster access.
Questions for the owner
target_infoout-of-order samples be re-measured after fix(telemetry): delta metrics from one process can reach the collector out of order #792?Order
dan-petty commentedon Oct 17, 2026
Moved to the backlog: it was New, not Ready, when v0.2.37 started. (devops roadmap reprioritize)
feat(k8s): scrape alloy collectors, grafana and pyroscope and alert o…
feat(k8s): alert when an alloy-logs pod ships no log entries (#1128) (#…
fix(k8s): disable loki-canary, lower pyroscope log level, and scope g…
feat(k8s): collect profiles via k8s-monitoring alloy-profiles and ale…
feat(k8s): add CoreDNS dashboard and metric capture (#1128) (#1785)
fix(grafana): align stack dashboard queries with exported metrics (#1136
feat(k8s): monitor ArgoCD, Valkey, and registry and alert on service …
refactor(k8s): move llm-gateway ServiceMonitor to the llm stack (Closes
dan-petty commentedon Oct 21, 2026
What changed
#1794, merged into
release/v0.2.38as 1651384.17 file(s) changed.
How it was verified
Check runs at 0150849:
Acceptance Criteria of
docs/agent/tasks/task-1128-monitoring-stack-k8s-monitoring-and-chart-features.md:k8s/monitoring/k8s-monitoring-values.yamlintegrationsgains thealloy(k8s-monitoring) andgrafana(grafana) instances.k8s/monitoring/pyroscope-values.yamlsetsserviceMonitor.enabled: true, andtest_prometheus_operator_crds_install_before_every_service_monitorincludes("infra", "pyroscope").k8s/monitoring/prometheus-values.yamlgains thehomelab-telemetry-pipelinerule group withAlloyRemoteWriteSamplesFailed,AlloyLogEntriesDropped, andPodLogsNotShipped.tests/test_k8s_monitoring_alerting.pyasserts, as structural tuples, the pipeline drop rules and scrape settings (feat(k8s): the alloy collectors, grafana and pyroscope are scraped through chart integrations, and a dropped sample or log entry alerts #1131) andPodLogsNotShipped's name, expression,forduration, and severity (feat(k8s): alert when pod logs stop reaching loki #890).tests/test_k8s_monitoring_alerting.pyasserts that every Alloy metric name thehomelab-telemetry-pipelinerules use is intests/fixtures/k8s_monitoring/integrations/alloy.yamland that the fixture header matches thek8s-monitoringchart version pin insrc/devops_cli/commands/k8s/stack_lifecycle.py.tests/test_k8s_monitoring_integration.py_scrape_ownershandles list-valuedlabelSelectorsand chart-defaultapp.kubernetes.io/nameselectors.k8s/README.mddocuments the Alloy, Grafana, and Pyroscope scrapes and the new alerts.k8s/logging/loki-values.yamlsetslokiCanary.enabled: falseand documents the Loki 3.6.11GetCacheGenNumbersbehavior withdeletion_mode: disabledandcompactor.retention_enabled: true.k8s/logging/networkpolicy.yamlnarrows themonitoringingress peer on TCP 3100 to Grafana and the threek8s-monitoringAlloy collectors, andtests/test_k8s_network_policies.pypins the peer set and rejects a namespace-onlymonitoringpeer.k8s/monitoring/pyroscope-values.yamlsetspyroscope.extraArgs.log.level: infoandk8s/monitoring/grafana-values.yamldisables the datasource sidecar and scopes the dashboard sidecar and RBAC tomonitoringConfigMaps, verified by structural tuple and debug-log-level tests intests/test_k8s_monitoring_integration.py.k8s/monitoring/pyroscope-values.yamldisables the bundled Alloy subchart (alloy.enabled: false) andk8s/monitoring/k8s-monitoring-values.yamlconfiguresdestinations.localPyroscope,profiling(ebpf.targetingScheme: allandpprof), andcollectors.alloy-profiles.k8s/monitoring/dashboards/pyroscope.jsonandk8s/monitoring/dashboards/sre-service.jsonqueryservice_namefrom Pyroscope without hard-coded service lists orcreated_by_name, andk8s/monitoring/prometheus-values.yamladdsPyroscopeQueryErrors.k8s/monitoring/dashboards/coredns.jsonandtests/fixtures/metrics/coredns.yamladd the CoreDNS dashboard over capturedcoredns_*series (job="integrations/kubernetes/kube-dns"), verified bytests/test_stack_dashboards.pyandtests/test_k8s_monitoring_dashboards.py.ingress-tunnel.json,k8s-views-global.json,k8s-views-namespaces.json,k8s-views-nodes.json, andotel-collector.jsonqueries match exported series and labels, verified againsttests/fixtures/metrics/andtests/fixtures/k8s_monitoring/cluster_metrics/intests/test_stack_dashboards.py(fix(k8s): the kubernetes, node and ingress dashboards query only series something serves, checked against captured exporter families and the chart allow lists #1136).ServiceMonitors forcontroller,server,repoServer, andredis-exporter),llm/valkey(redis-exportersidecar viaannotationAutodiscovery), andregistry(annotationAutodiscoveryon port 5001) have exactly one scrape owner and one monitoring egress rule per port, andhomelab-servicesalerts on Argo CD sync/health, tunnel HA connections, and Valkey cache errors (Metrics for the rest of the platform #551).k8s/llm/gateway/servicemonitor.yamlmoves thellm-gatewayServiceMonitorout ofk8s/monitoring/k8s-monitoring-values.yaml(extraObjects) intok8s/llmand_POST_HELM_BY_STACK["llm"], applied after Helm releases and deleted before Helm uninstalls, withSkipDryRunOnMissingResource=trueonk8s/argocd/apps/llm.yaml(fix(k8s): deploy-stack warns about GPU nodes no Ollama tier accepts, k8s/README.md documents GPU placement, and the gateway's ServiceMonitor moves to the llm stack #1367).devops k8s deploy-stackon a cluster without Argo CD):count by (job) (up)lists nokubernetes-api-servers,kubernetes-service-endpoints*,kubernetes-pods-slow,kubernetes-servicesorprometheus-pushgatewayjob, andprometheus_tsdb_head_seriesis below 30k;count by (job) (up{job=~"integrations/alloy|integrations/grafana|.*pyroscope.*"})shows 3 Alloy targets, 1 Grafana and 1 Pyroscope, andsum by (pod) (loki_write_sent_entries_total)returns one row peralloy-logspod andalloy-singleton;AlloyRemoteWriteSamplesFailed,PodLogsNotShipped, andPyroscopeQueryErrorsstay inactive on a healthy cluster;kubectl get ds -n logginglists noloki-canary,kubectl get clusterrole grafana-clusterrolereturns NotFound, andkubectl get role -n monitoring grafana -o jsonpath='{.rules}'grantsconfigmaps;kubectl get sts -n monitoring pyroscope-alloyreturns NotFound,kubectl get ds -n monitoring k8s-monitoring-alloy-profilesis ready on every node,kubectl get podlogs.monitoring.grafana.com -Aprints "No resources found" beforekubectl delete crd podlogs.monitoring.grafana.com, and any zero-lengthblock.bintorn segments in Pyroscope'ssegments/directory are backed up and moved aside with Pyroscope scaled to 0;up{job="llm-gateway"} == 1afterdeploy-stack --stack llmalone on a cluster running the infra stack, andhelm get manifest k8s-monitoring -n monitoring | grep -c ServiceMonitorprints 0.feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)