Get the Prometheus server URL by running these commands in the same shell

From wikieduonline
Revision as of 19:11, 1 March 2023 by Newworld (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9090


export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9090

error: unable to forward port because pod is not running. Current status=Pending


helm install prometheus, Prometheus: values.yml

Advertising: