feat(grafana): add Kubernetes kube-state-metrics 6417 curated pack - #389
Merged
shmsr merged 2 commits intoSep 2, 2026
Merged
Conversation
Member
Author
|
Tracking: closes #393 under https://github.com/elastic/obs-integration-team/issues/1200. Please add |
5 tasks
shmsr
force-pushed
the
feat/grafana-6417-kubernetes-ksm
branch
2 times, most recently
from
September 1, 2026 18:43
084cacd to
d782a5e
Compare
Curated pack for grafana.com dashboard 6417 ("Kubernetes Cluster
(Prometheus)"), a kube-state-metrics + node_exporter cluster-health
dashboard authored against an older KSM/node_exporter lineage. Stacked on
the cAdvisor 315 pack (shares the parity-rig k8s_exporter added there).
The pack modernizes the source metric surface:
- metric_map bridges renamed names (node_filesystem_size/_free ->
*_bytes, kube_pod_container_status_restarts -> *_total)
- metric_kinds classify the KSM gauges and the restarts counter
- query_overrides reshape the resource-split KSM metrics
(kube_node_status_allocatable{resource=cpu|memory|pods} filtered
per-resource) so the cluster CPU/Memory/Pod usage tiles compute the
correct allocatable denominator, and group the Deployment Replicas
table by deployment
The removed OutOfDisk node condition is documented as an honest gap, and
the constant .* $node/$namespace variables become bound Kibana controls.
Live render audit against the parity-rig k8s_exporter: 29 rendered / 0
error. Fidelity manifest, design doc, docs/sources/grafana.md, and offline
fixture tests included; registry provenance pinned (rev 1) and verified.
Constant .* $node/$namespace hydrated to the first concrete option on upload, and the absolute request tiles still named the old per-resource metrics. Multi-select label_values controls plus resource-split overrides restore Grafana's all-match first paint and populate CPU/memory requested.
giorgi-imerlishvili-elastic
force-pushed
the
feat/grafana-6417-kubernetes-ksm
branch
from
September 1, 2026 22:44
d782a5e to
a3b5c0c
Compare
An error occurred while trying to automatically change base from
feat/grafana-315-kubernetes-cadvisor
to
main
September 2, 2026 06:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
metric_maprenames, resource-splitquery_overridesfor allocatable/requests, deployment table grouped bylabels.deployment, honest OutOfDisk gap.plugin.pyrewrites constant.*$node/$namespaceto multi-selectlabel_values()controls so first paint is Grafana All, not the first concrete namespace/node. Cluster usage/capacity tiles bind?nodeviaMV_CONTAINS.kube_pod_container_resource_requests{resource=...}. Producer emits full KSM 0/1 phase series so Pending/Failed/Succeeded/Unknown render 0 instead of N/A.Stacks on #388 (
feat/grafana-315-kubernetes-cadvisor).Test plan
pytest tests/test_curated_packs.py -k 6417make lintmetrics-k8s.prometheus-default; confirm first paint Number of Nodes=all, request tiles populate, phase tiles are 0 not N/A, OutOfDisk stays emptyFixes #393