DEV Community

reoring
reoring

Posted on

Deploy Prometheus + Grafana to Kubernetes by Helm 3

Make your own Prometheus + Grafana in kubernetes cluster and start monitoring it in some minutes😌

Add repository of stable charts

Helm3 has not default repository.

helm repo add stable https://kubernetes-charts.storage.googleapis.com
Enter fullscreen mode Exit fullscreen mode

Install prometheus-operator

helm install my-prometheus-operator stable/prometheus-operator
Enter fullscreen mode Exit fullscreen mode

Show pods

kubectl --namespace default get pods -l "release=my-prometheus-operator"
Enter fullscreen mode Exit fullscreen mode

Show Grafana UI

kubectl port-forward $(kubectl get pods --selector=app=grafana --output=jsonpath="{.items..metadata.name}") 3000
Enter fullscreen mode Exit fullscreen mode

Open it http://localhost:3000/

Top comments (2)

Collapse
 
flypenguin profile image
Axel Bock

did someone solve this -> is.gd/XFgee6 ?
cause I'm still getting those errors, and the installation does not work properly after.

Collapse
 
davidzisky profile image
David Zisky

Simple and easy but would be worth to mention default credentials for Grafana: login/pass: admin/prom-operator