You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am now in my third project where I am using the kube-prometheus-stack and it's the third time I am struggling with handling dashboards as code. Currently I am testing stuff with the following ConfigMap:
Grafana will pick this up, but only if I restart the pod. I have found a reload url in the pod defintion but I would like to avoid calling the API every time I add, delete or change a Dashboard.
After some googling I found this blogpost that defines its own dashboardProvider and apparently its possible to set an updateIntervalSeconds on them:
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1providers:
- name: defaultorgId: 1folder: ""type: filedisableDeletion: falseupdateIntervalSeconds: 10# how often Grafana will scan for changed dashboardsallowUiUpdates: trueoptions:
path: /var/lib/grafana/dashboards/defaultfoldersFromFilesStructure: false
However, I couldnt find any values to add or edit a dashboardProvider for the kube-prometheus-stack.
My question is, is there a prefered/best-practice way to handle this? It feels like everyone is using their own workaround for it right now (depending on what Helm Chart or Grafana flavor they are using) but there is no real documentation for it. But maybe that's just me because I am too confused. I would appreciate you kicking me in the right direction if that's the case! :D
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everyone,
I am now in my third project where I am using the kube-prometheus-stack and it's the third time I am struggling with handling dashboards as code. Currently I am testing stuff with the following
ConfigMap
:Grafana will pick this up, but only if I restart the pod. I have found a reload url in the pod defintion but I would like to avoid calling the API every time I add, delete or change a Dashboard.
After some googling I found this blogpost that defines its own
dashboardProvider
and apparently its possible to set anupdateIntervalSeconds
on them:However, I couldnt find any values to add or edit a
dashboardProvider
for the kube-prometheus-stack.My question is, is there a prefered/best-practice way to handle this? It feels like everyone is using their own workaround for it right now (depending on what Helm Chart or Grafana flavor they are using) but there is no real documentation for it. But maybe that's just me because I am too confused. I would appreciate you kicking me in the right direction if that's the case! :D
Beta Was this translation helpful? Give feedback.
All reactions