Grafana
Container running Grafana with datasources and dashboards auto-provisionning for Loki and Prometheus.
Parameters
Name | Description | Value |
---|---|---|
GRAFANA_ADMIN_PASSWORD |
Grafana admin user password |
"ChangeIt" |
Usage with docker
- Start grafana :
docker compose up -d
- Open https://grafana.dev.localhost/
- Login with “admin” / “ChangeIt”
- See prometheus and loki datasources : https://grafana.dev.localhost/connections/datasources
- See sample dashboards : https://grafana.dev.localhost/dashboards
- Import some dashboards
Usage with Kubernetes
Read k8s-install.sh and run :
# To get grafana on http://grafana.dev.localhost
bash k8s-install.sh
# To get grafana on http://grafana.example.net
DEVBOX_HOSTNAME=example.net bash k8s-install.sh
- Retreive “admin” user password from secret
kubectl -n grafana get secrets grafana -o jsonpath='{ .data.admin-password }' | base64 -d
Some dashboards
Prometheus & Node
Prometheus & Blackbox Exporter :
Prometheus & Traefik :
Prometheus & Kubernetes :
- 8171 - Kubernetes Nodes
- 6417 - Kubernetes Cluster (Prometheus)
- 315 - Kubernetes cluster monitoring (via Prometheus)
- 15758 - Kubernetes / Views / Namespaces
Nginx Ingress Controller :
Loki :
Kyverno :