kubectl -n observability port-forward svc/prometheus-operated 9090:9090Build useful golden signals for Kubernetes APIs without triggering Prometheus cardinality traps
Keep stable labels, measure latency that actually explains incidents, and stop ephemeral pods from turning your metrics into expensive noise.
A practical guide to traffic, latency, errors, and saturation for Kubernetes APIs without filling Prometheus with useless series or breaking alerts.
Created: April 26, 2026
Published: April 26, 2026
Linux
Recommended when you operate Prometheus/Grafana against a real cluster and can use kubectl + curl from a Linux workstation.
kubectlcurljq
curl -s http://127.0.0.1:9090/api/v1/status/tsdb | jq '.data.labelValueCountByLabelName | map(select(.name=="route" or .name=="pod" or .name=="session_id" or .name=="pod_uid" or .name=="http_target"))'Content locked
This guide requires both steps before full content is available.
- ○Click “Like” on this guide.
- ○Share on WhatsApp, X, LinkedIn, or copy the link.
Access is automatically unlocked as soon as both steps are completed.