Skip to content

Instantly share code, notes, and snippets.

@magickatt
Created May 6, 2020 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magickatt/e357c834447e014834d7a7a92195b01f to your computer and use it in GitHub Desktop.
Save magickatt/e357c834447e014834d7a7a92195b01f to your computer and use it in GitHub Desktop.
# Port forward to kube-state-metrics on the cluster
kubectl port-forward service/kube-state-metrics 8080:8080 -n kube-system &
# Hit the metrics endpoint
curl localhost:8080/metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment