Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 661 Bytes

Prometheus.md

File metadata and controls

22 lines (15 loc) · 661 Bytes

Prometheus

Check status:

kubectl --namespace prometheus get pods -l "release=prometheus"

Get 'admin' user password:

kubectl --namespace prometheus get secrets prometheus-grafana -o jsonpath="{.data.admin-password}" | base64 -d ; echo

Access Grafana local instance:

export POD_NAME=$(kubectl --namespace prometheus get pod -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=prometheus" -oname)
kubectl --namespace prometheus port-forward $POD_NAME 3000

Visit https://github.com/prometheus-operator/kube-prometheus for instructions on how to create & configure Alertmanager and Prometheus instances using the Operator.