Grafana dashboard fails to install
The download-dashboards
init container is stuck in a CrashLoopBackOff
state because it can't download the flux grafana dashboard:
❯ kc -n stackspin logs kube-prometheus-stack-grafana-564d58446b-z9v45 -c download-dashboards
+ set -euf
+ mkdir -p /var/lib/grafana/dashboards/default
+ mkdir -p /tmp/dashboards
+ curl -skf --connect-timeout 60 --max-time 60 -H 'Accept: application/json' -H 'Content-Type: application/json;charset=UTF-8' https://raw.githubusercontent.com/fluxcd/flux2/main/manifests/monitoring/grafana/dashboards/cluster.json
When I try it manually it returns a 404:
❯ curl -kf --connect-timeout 60 --max-time 60 -H 'Accept: application/json' -H 'Content-Type: application/json;charset=UTF-8' https://raw.githubusercontent.com/fluxcd/flux2/main/manifests/monitoring/grafana/dashboards/cluster.json
curl: (22) The requested URL returned error: 404
This is due to this flux2 commit which moved the grafana dashboard to a new location (manifests/monitoring/grafana/dashboards/cluster.json
-> manifests/monitoring/monitoring-config/dashboards/cluster.json
)