How to backup Grafana in Kubernetes system

Hi

I am new to Grafana and also K8S. I just deployed Grafana using Helm into my Rancher K8S system and I want to know how to backup it.

I tried to follow this document but still confused because I am not sure where $WORKING_DIR or customs.ini are.

Please help.

Thank you very much.
KL

It depends. Let’s assume you are using volume for Grafana DB, so just snapshot that volume (it’s advance k8 topic):

1 Like

Thank you for your answer. I also want to do that as it seems like the easiest way to backup.
However, I have got this issue ‘/var/lib/grafana/plugins’: permission denied’ when I enable persistent volume using Helm as instructed on this link
Deploy Grafana using Helm Charts | Grafana documentation

It depends on your personal preference - there is no the best solution. I hate K8S volumes, so I use SaaS DB (e.g. AWS RDS Aurora) with automated daily snapshots with 30d retention period + manual snapshot before each major upgrade, I have restore exercise once per year. This is my “the easiest way”.

  1. is your grafana backend sqlite?
  2. how many dashboards do you have?
  3. do you have any other fancy stuff going on in your grafana other than dashboards?

@yosiasz

  1. I deployed it through helm without editing anything. So, I think it is on sqllite.
  2. Since I just started with it, I have developed 2 dashboards.
  3. No, my plan was to use it for visualizing time series data from machines in the factory and alert when some anomalies happen such as values exceeding thresholds.
1 Like

highly recommend you also look at the provisioning of dashboards route