Skip to content

Instantly share code, notes, and snippets.

@efossas
Created July 4, 2019 17:57
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 efossas/8aa5808afd5fe29491c7116985c24bc1 to your computer and use it in GitHub Desktop.
Save efossas/8aa5808afd5fe29491c7116985c24bc1 to your computer and use it in GitHub Desktop.
Port Forward To Prometheus
kubectl port-forward --namespace metrics $(kubectl get pod --namespace metrics --selector="app=prometheus,component=server,release=metrics" --output jsonpath='{.items[0].metadata.name}') 8080:9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment