Grafana
Distro | Grafana |
---|---|
Type | deployment |
Deploy | helm-chart |
Docs | link |
Backup | |
Scaling | |
CLI | |
UI | web |
Setup
grafana:
defaultDashboardsEnabled: false
serviceMonitor:
enabled: false
Usecases
✅ Basic: add dashboards
-
search dashboard https://grafana.com/grafana/dashboards/
-
download JSON and put it into
kube-prometheus-stack/dashboards/
directory -
template automatically put it in grafana as configmap with special label
grafana_dashboard: "1"
{{ range $path, $_ := .Files.Glob "dashboards/**.json" }}
{{ $name := $path | trimPrefix "dashboards/" }}
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: monitoring
name: dashboard-{{ $name | trimSuffix ".json" }}
labels:
grafana_dashboard: "1"
annotations:
argocd.argoproj.io/sync-options: ServerSideApply=true
data:
{{ $name }}: |
{{ $.Files.Get $path | nindent 4 }}
{{ end }}
Common: manage dashboards
✅ Monitoring
Grafana Dashboard
Maintenence
- Backup / Restore
- Scaling
- Upgrade