Repository navigation
Description
Problem
Several shipped dashboards query series that nothing serves, so their panels are permanently empty. Re-checked at origin/release/v0.2.25 against live Prometheus on 2026-10-03.
- Traefik v2 names.
ingress-tunnel.jsonqueriessum(traefik_entrypoint_open_connections{...})andsum by (service)(traefik_service_open_connections{...}). The live Traefik is v3.7.13, whose only open-connections series istraefik_open_connections{entrypoint, protocol}: 4 series, with noservicelabel. Every othertraefik_*name the dashboard uses is served. - The kube-state-metrics v1 HPA name.
k8s-views-global.json:548andk8s-views-namespaces.json:401usesum(kube_hpa_labels{...}). KSM v2.20.0 serves onlykube_horizontalpodautoscaler_*. fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129 removes the matching allow-list entry. The cluster has no HPA today, so the corrected panel stays empty until one exists, which is correct. - Kubelet volume stats on local-path.
k8s-views-namespaces.jsonandk8s-views-nodes.jsonquerykubelet_volume_stats_{used,capacity}_bytesand the inode variants. There are 0 such series. All 8 PVCs uselocal-pathorfast-nvme, both provisioned byrancher.io/local-path, which reports no volume stats.prometheus-values.yaml:232and:256already say so, andLogOrMetricVolumeDiskLowreadsnode_filesystem_*on the node holding the claim instead. - A gauge read as a counter.
k8s-views-nodes.json:3768appliesrate()tonode_disk_io_now, which is a gauge (I/Os in progress). fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129 brings the series back. - A lazily created failure counter.
otel-collector.json'srate(otelcol_exporter_send_failed_spans{...})has no series until the first failure. The existing gate (tests/test_stack_dashboards.py) accepts it through the fixture'sfrom_sourceentry and rejects anor vector(0)fallback as a false zero (test_a_constant_fallback_fails_however_it_is_spelled). So the panel shows "No data" where "none recorded" is meant.
tests/test_stack_dashboards.py already checks llm-stack.json, otel-collector.json and prometheus-server.json against captured metric families (tests/fixtures/metrics/: names, types and label names only). The Kubernetes views, the node dashboard and ingress-tunnel.json are not covered. Neither is the allow-list filter that decides whether a captured family reaches Prometheus. That gap is how #923's allow-list regression (#1129) went unnoticed.
Acceptance criteria
-
ingress-tunnel.json:- the entrypoint open-connections panel is
sum by (entrypoint) (traefik_open_connections{entrypoint=~"$entrypoint"}); - the per-service open-connections panel becomes
sum by (service) (rate(traefik_service_requests_total{...}[$__rate_interval])), titled as request rate.
- the entrypoint open-connections panel is
- Both k8s-views dashboards query
kube_horizontalpodautoscaler_labels. - The
kubelet_volume_stats_*panels are removed fromk8s-views-namespaces.jsonandk8s-views-nodes.json. Each dashboard's description says why: local-path reports no volume stats; see the node filesystem panels andLogOrMetricVolumeDiskLow. -
node_disk_io_nowis read withoutrate(). - The
otel-collector.jsonfailed-spans panel sets the panel optionnoValue: "none recorded". Its query is unchanged. - Captures are added for traefik, kube-state-metrics, node-exporter, kubelet and cAdvisor, in the existing fixture format: names, types and label names, never label values, plus the image or version they came from.
-
tests/test_stack_dashboards.py's dashboard-to-exporter map coversingress-tunnel.json(traefik) and the threek8s-views-*.json(kube-state-metrics, node-exporter, kubelet, cAdvisor). - For the families behind k8s-monitoring, a family counts as served only if it also passes the effective allow list: the chart default plus
includeMetrics, read from fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129's fixture and a KSM/kubelet/cAdvisor counterpart copied from the same chart version. - Verified by mutations in review, each of which must make the test fail:
- re-adding
kube_hpa_labelsto a dashboard; - setting
useIntegrationAllowList: false.
- re-adding
- The README dashboard table notes that the Kubernetes views are checked against captures.
- No test reaches the network. Each new test's call phase is under 1 s, and
uv run devops cistays within budget. - Pending a person, after Grafana reloads the dashboards: every panel on Ingress & Tunnel, K8s Views Global, K8s Views Namespaces and K8s Views Nodes shows data or an explained empty state. The HPA panel is empty while no HPA exists.
Key questions
- Why not
or vector(0)on the failure panel, as first proposed? Proposed: the repo's gate rejects constant fallbacks, because a false zero hides a broken export.noValuechanges only the empty-state text and keeps the series semantics. - Replace the volume panels with a node-filesystem join instead of removing them? Proposed: remove them. The node dashboard already shows each node's filesystems. The per-claim view needs the claim-to-node join that
LogOrMetricVolumeDiskLowdoes in PromQL, which belongs in an alert, not a per-namespace panel. Re-add the panels if a CSI driver that reports volume stats replaces local-path. - Captures drift when charts move. Proposed: each capture records its exporter version, 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's chart pin is the trigger to refresh. This is the same rule the existing captures follow.
- Should the gate also cover the provisioned gnetId dashboards (1860, 12239)? Proposed: only their variable queries. fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129's test covers 1860's
node_uname_info. The panels of third-party dashboards are not edited here.
Strategic alignment
- P3 fix: four dashboards show permanently empty panels. The gate extension stops the next allow-list or exporter-version drift from shipping unnoticed.
- Value: medium (trustworthy dashboards; catches fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129-class regressions). Effort: M (five dashboards, five captures, test map extension).
- Library-first: extends the repo's existing capture-based checker (
devops_cli.prometheus.promql) and the chart's own allow lists. No new linter. - Related: feat(k8s): ingress and cloudflare tunnel sre grafana dashboard #924 (ingress-tunnel origin), feat(k8s): llm gateway, otel collector and prometheus dashboards over metrics the cluster collects (
k8s/monitoring/dashboards/) #693/Comprehensive k8s-monitoring telemetry integration and dashboard metric fixes #825 (k8s views and lists), fix(k8s): restore kubernetes cpu metrics and align monitoring dashboards to homelab-k3s #737, fix(telemetry): grafana aggregate lines sum and average the lines shown, read as dashed reference lines, and reach calls in flight #970 (aggregate lines on the same dashboards; coordinate edits), fix(k8s): k8s-monitoring collectors run in the chart's preset shapes, and node-exporter keeps the series the node dashboards read #1129 (allow lists and fixture; merge first), fix(k8s): the prometheus server scrapes only itself and the otel collector, and k8s-monitoring discovers every other target #1130 (scrape owners the map reflects).
Update 2026-10-08: refinement
The five problems remain. k8s-monitoring 4.5.2's default list has no kube_horizontalpodautoscaler_labels, so add it to includeMetrics or query one of the four HPA names. After #1129, node-exporter is unfiltered; copy the other default lists in #1131's format. The mutation becomes removing an includeMetrics entry a dashboard reads.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 18, 2026
Update 2026-10-18 from a read-only cluster audit (main 3dd7fa6). Two more gaps fit this item, because it already edits
k8s-views-nodes.jsonand extends the dashboard-to-exporter map. Problems 1 and 2 above still reproduce live.6. The node dashboard's per-pod CPU and memory panels select
image="", which the chart drops.k8s-views-nodes.json:1241,1252,1263("CPU usage by Pod", title at:1269) and:1360,1371,1382("Memory usage by Pod",:1388) selectimage="".count(container_cpu_usage_seconds_total)= 61 =count(container_cpu_usage_seconds_total{image!=""}). Series withimage=""existed until about 2026-10-02/03 (daily distinct series 171, 92, 93, then 0). Since then the k8s-monitoring Alloy cAdvisor pipeline has dropped them: ConfigMapmonitoring/k8s-monitoring-alloy-metricshas the rule "Drop empty image labels" (empty container field gives 2x sum in container_cpu_usage_seconds_total google/cadvisor#2688), coveringcontainer_cpu_.*,container_memory_.*,container_network_.*and others. Both panels have read "No data" for about 15 days.image=""withcontainer!=""and keep thesum by (pod)aggregation over the container series. Do not set the chart'sdropEmptyImageLabels: false, which would bring back the duplicate cgroup-level series.imageorcontainerforcontainer_*families, or record the chart's empty-label drop rules with the cAdvisor capture. Mutation: re-addingimage=""must fail the test.7. One provisioned dashboard is checked by no capture, and the README overstates coverage.
nvidia-dcgm.jsonis provisioned (k8s/monitoring/dashboards/kustomization.yaml:46; the live ConfigMapgrafana-stack-dashboardsholds 7 dashboards), butDASHBOARD_EXPORTERS(tests/test_stack_dashboards.py:139-143) maps only llm-stack, otel-collector and prometheus-server. Its 6 DCGM names do appear intests/fixtures/metrics/dcgm-exporter.yaml, so mapping it as("dcgm-exporter",)costs one line.k8s/README.md:179leavesnvidia-dcgm.jsonout of the grafana-stack-dashboards row.k8s/README.md:200says the test "checks every query against captures", which is true for 3 of 7. Reword it to name the dashboards checked once this item has extended the map.The goroutine profile-type typo in
pyroscope.jsongoes to #1134, and the sre-service Loki pod selector is #1357.fix(grafana): align stack dashboard queries with exported metrics (#1136
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)
dan-petty commentedon Oct 23, 2026
Delivered by #1786: the dashboards query only served series, and
tests/test_stack_dashboards.pychecks them against captured exporter families and the chart allow lists. #1958 fixed the rest of the empty panels.