REA kube-state-metrics notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

kube-state-metrics config trees (collectors / metric allowlists / resource selectors / Deployment) record KSM identity. In REA 6.7.x, treat selected collectors and allowlist labels as Evidence beside archive/package routes — complementing node-exporter / Prometheus Operator / PrometheusRule / Grafana cousins without inventing APIs. Distinct from rea-node-exporter (KSM ≠ node metrics) and rea-prometheus-operator (KSM ≠ Operator CRDs).

Mental model

  1. Authorize the kube-state-metrics config tree (+ packaged charts you hold).
  2. Quote selected collectors / metric allowlists / resource labels you actually see (never paste service-account tokens or kubeconfig secrets).
  3. Cousins → node-exporter · prometheus-operator · prometheus-rules · grafana-dashboards.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_kube_state_metrics API REA never called.

Minimal path

# authorized kube-state-metrics collectors / allowlist files (+ charts you hold)
# quote selected collectors / allowlist labels into case notes
# cousins → peer node-exporter / Prometheus Operator / PrometheusRule / Grafana lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_kube_state_metrics .

Compare

ArtifactHonest posture
collectors / metric allowlists / resource selectorskube-state-metrics identity facts
Peerrea-node-exporter
Peerrea-prometheus-operator
Not thisrea-prometheus-rules (alerting rules zoom)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected collector names, metric allowlists, and resource labels — enough for most Evidence binders.
  • Service-account tokens, kubeconfig secrets, and remote cluster URLs are secrets — record key names only.
  • Keep KSM identity distinct from node-exporter / Prometheus Operator trees in case notes.
  • Chart image tag pins are identity Evidence — label them separately from cousin pages.
  • Select keys are useful inventory — quote them without inventing REA helpers for live metrics admission.

Scope we will not cover

  • No inventing inspect_kube_state_metrics / automatic scrape against foreign clusters.
  • No credential theft from service-account tokens, kubeconfig secrets, or remote URLs.
  • No pirate redistribution of proprietary kube-state-metrics trees.
  • No crack framing via KSM pins.
  • No cookbooks that weaken metrics auth on foreign clusters.
  • No using kube-state-metrics as an unauthorized cluster-recon guide against clusters you do not own.

Honest limits

RepoRead documents config literacy — how authorized kube-state-metrics trees relate to Evidence — not a full Kubernetes metrics course. Prefer upstream kube-state-metrics docs for collectors; use rea-node-exporter for node metrics identity. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

How is this different from rea-node-exporter / rea-prometheus-operator / rea-prometheus-rules / rea-grafana-dashboards?

rea-node-exporter covers node-exporter. rea-prometheus-operator covers Operator CRDs. rea-prometheus-rules covers PrometheusRule. rea-grafana-dashboards covers dashboards. This page zooms on kube-state-metrics / collectors identity — it does not overwrite those pages.

Is there inspect_kube_state_metrics in 6.7.0?

Not assumed. Quote collectors / metric allowlists / resource labels you actually open, then use documented package/archive lanes. Do not invent inspect_kube_state_metrics.

Does REA call Kubernetes APIs or steal cluster credentials?

No. Local trees only. Redact kubeconfig secrets, service-account tokens, and remote cluster URLs; do not treat REA as a metrics scraper. No credential theft.

How should I label Evidence vs node-exporter / Prometheus Operator configs?

Label Evidence by the file present. Keep kube-state-metrics labels separate from rea-node-exporter and rea-prometheus-operator.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources