Skip to content

feat(grafana): add Kubernetes cAdvisor 315 curated pack - #388

Merged
shmsr merged 2 commits into
mainfrom
feat/grafana-315-kubernetes-cadvisor
Sep 2, 2026
Merged

feat(grafana): add Kubernetes cAdvisor 315 curated pack#388
shmsr merged 2 commits into
mainfrom
feat/grafana-315-kubernetes-cadvisor

Conversation

@shmsr

@shmsr shmsr commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Curated pack for Grafana 315 (cAdvisor cluster monitoring): pre-1.16 pod_name/container_namelabels.pod/labels.container, dead matcher strip, k8s-only container panels, honest systemd empty.
  • Explicit ES|QL overrides so Pods CPU/memory breakdowns stay on labels.pod, Pods/All-processes network legends are Received/Sent (not Value B), and All-processes groups by cgroup id.
  • Extends the curated parity-rig producer with modern cAdvisor container_* + machine_* + per-container cgroup id for live validation.

Stacks on #386 (feat/grafana-12485-postgresql-exporter-pack). Follow-up pack is Grafana 6417 (kube-state-metrics) on top of this branch.

Test plan

  • pytest tests/test_curated_packs.py -k 315
  • make lint
  • Migrate + upload 315 against metrics-k8s.prometheus-default (prometheus_native); confirm Pods network Received/Sent, All-processes cgroup legends, systemd panels empty (not error)

Fixes #392

@shmsr shmsr added program:curated-packs Curated Grafana community dashboard packs source:grafana Grafana source migration asset:dashboards Dashboard migration assets labels Sep 1, 2026
@shmsr

shmsr commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

Tracking: closes #392 under https://github.com/elastic/obs-integration-team/issues/1200. Please add Fixes #392 to the PR body.

@shmsr shmsr self-assigned this Sep 1, 2026
@shmsr
shmsr force-pushed the feat/grafana-315-kubernetes-cadvisor branch 2 times, most recently from cbb31fa to e38b92b Compare September 1, 2026 18:43
Base automatically changed from feat/grafana-12485-postgresql-exporter-pack to main September 1, 2026 22:44
Curated pack for grafana.com dashboard 315 ("Kubernetes cluster
monitoring (via Prometheus)"), a cAdvisor-only cluster dashboard authored
against a pre-1.16 cAdvisor lineage.

The pack bridges the legacy conventions so the operational per-pod /
per-container panels render on a modern Elastic cAdvisor scrape:
- label_rewrites map pod_name/container_name -> labels.pod/labels.container
- ignored_labels strip dead selector matchers (kubernetes_io_hostname,
  image, name) that would otherwise filter every panel to empty
- metric_kinds classify the cAdvisor counters/gauges
- explicit query_overrides for the Pods CPU/memory panels keep the ES|QL
  output column and the Lens breakdown aligned on labels.pod (the native
  PROMQL DSL otherwise leaves the breakdown accessor on the pre-rewrite
  pod_name and fails with "invalid column")

Obsolete container runtimes are documented as honest gaps, never faked
into a single misleading aggregate: docker/rkt series are dropped from the
multi-runtime container panels (disclosed as approximations) and the
systemd system-service panels degrade to an honest empty via an
impossible-filter override instead of erroring on systemd_service_name.

Adds a synthetic k8s_exporter to the parity-rig curated stack (cAdvisor +
KSM + node_exporter series) so 315 can be validated end-to-end. Live
render audit: 19 rendered / 0 error / 2 honest empty gaps. Fidelity
manifest, design doc, docs/sources/grafana.md, and offline fixture tests
included; registry provenance pinned (rev 3) and verified.
…up id

Native butterfly fusion labeled transmit as Value B, and All-processes
legends collapsed to (null) without a per-container cgroup id. Explicit
ES|QL overrides plus producer id labels keep the Kibana legends aligned
with Grafana.
@giorgi-imerlishvili-elastic
giorgi-imerlishvili-elastic force-pushed the feat/grafana-315-kubernetes-cadvisor branch from e38b92b to 23f80a1 Compare September 1, 2026 22:44
@shmsr
shmsr merged commit e0b3560 into main Sep 2, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

asset:dashboards Dashboard migration assets program:curated-packs Curated Grafana community dashboard packs source:grafana Grafana source migration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[pack] Grafana 315 Kubernetes cluster monitoring (cAdvisor)

1 participant