kubectl create namespace monitoring
- Create a secret for Grafana credentials
kubectl create secret generic grafana-admin-credentials --from-file=./admin-user --from-file=./admin-password -n monitoring
- Add helm repo
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
- Deploy
helm upgrade --install -n monitoring prometheus prometheus-community/kube-prometheus-stack -f kube-prometheus-stack\values.yaml
- Add helm repo
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
- Deploy
helm upgrade --install loki grafana/loki-stack -n monitoring
helm upgrade --install tempo grafana/tempo -n monitoring -f tempo\values.yaml
- Create secret for database password
kubectl create secret generic postgres-user-pass --from-file=./password -n monitoring
- Deploy
helm upgrade --install postgres-exporter prometheus-community/prometheus-postgres-exporter -n monitoring -f postgres-exporter\values.yaml
kubectl port-forward service/grafana 3000:80 -n monitoring
Go to localhost:3000
kubectl port-forward service/prometheus-prometheus 9090:9090 -n monitoring
Go to localhost:9090