7 lines
492 B
Text
7 lines
492 B
Text
|
You can port forward a local port to Prometheus or the HTTP tracker by running:
|
||
|
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "fullname" . }}" -o jsonpath="{.items[0].metadata.name}")
|
||
|
# Prometheus port
|
||
|
kubectl port-forward $POD_NAME 8080:{{ $v := .Values.config.chihaya.prometheus_addr | split ":" }}{{ $v._1 }}
|
||
|
# HTTP tracker port
|
||
|
kubectl port-forward $POD_NAME 8080:{{ $v := .Values.config.chihaya.http.addr | split ":" }}{{ $v._1 }}
|