Skip to content

Update without losing all Grafana dashboards and data? #2026

Answered by Dunge
Dunge asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I think I got it.

I had to download the chart locally, and browse the grafana subchart templates up to the _pod.tpl file to find this section:

   {{- if and .Values.persistence.enabled (eq .Values.persistence.type "pvc") }}
   - name: storage
     persistentVolumeClaim:
       claimName: {{ tpl (.Values.persistence.existingClaim | default (include "grafana.fullname" .)) . }}

Which is in the grafana chart values.yaml, actually the standard helm structure for persistence.
And can be set in the kube-prometheus-chart by passing this snippet to its values.yaml:

grafana:
  persistence:
    enabled: true
    size: 500Mi

The part that confused me, is that browsing the kube-prometheus-stack …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Dunge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant