Installing Prometheus and Grafana
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
kubectl create namespace monitoring
helm install prometheus prometheus-community/prometheus \
--namespace monitoring \
--set alertmanager.persistentVolume.storageClass="standard" \
--set server.persistentVolume.storageClass="standard"
mkdir ${HOME}/environment/grafana
cat << EoF > ${HOME}/environment/grafana/grafana.yaml
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server.monitoring.svc.cluster.local
access: proxy
isDefault: true
EoF
helm install grafana grafana/grafana \
--namespace monitoring \
--set persistence.storageClassName="standard" \
--set persistence.enabled=true \
--set adminPassword='subje' \
--values ${HOME}/Documents/monitoring/grafana.yaml \
--set service.type=LoadBalancer
For example template ID: 6417 https://grafana.com/grafana/dashboards/6417
@prashantkalwani1 indeed if you want to point out to default it should either be set to standard or left out as an empty string to select the default which is standard. Thanks for bringing this up, I updated it.