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

From wikieduonline
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: