-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grafana persistent volume increasing to more than 20Gi #14674
Comments
maybe you have encountered this bug? #12864 Can you inspect the sqlite3 db (using sqlite3) and check the row count in the dashboard_version table ? Are you using provisioning? Maybe have the same dashboard in two different mapped folders |
yes, I'm using provisioning. I created a new folder under dashboard/, And I tried to set the versions_to_keep = 1, seems still growing very fast. yesterday, I delete this grafana.db, about 20h, it becomes 1G now. [grafana-data-0]# ls -al [ grafana-data-0]# sqlite3 grafana.db 0 main /var/data/monitoring/grafana-data-0/grafana.db |
And I found some "uid" is same btw these two dashboard folders, is that will cause the issue? |
I've changed the uid to let each dashboard unique. And I also removed some duplicate panels. Now after 3days, the grafana.db increased to 3G. Could you please take a look? And find the root cause? I also upgrade the grafana to v5.4.2. sqlite> select count(*) from dashboard_version; |
closing this as it's the same as #14674 , we will try to investigate this asap. |
hi, torkelo apiVersion: 1 providers:
================= apiVersion: 1 providers:
|
Oh, that explains it , the provisioning system checks for files sub folders , so with that default you map the same files 3 times |
FYI, I was able to reproduce this on version 6.4.3 by having non-unique dashboard provider names.
Previously the |
notice for anyone using k8s - ensure to not have duplicated dashboards via configmaps (I mean the contents) |
Hi, we did not using the dashboard provisioning, but the grafana.db is also take up 17GB during pass 7 weeks. The grafana version is v4.4.3. any how can we solve this issue? sqlite> select count(*) from dashboard_version; |
Please include this information:
What Grafana version are you using?
Grafana v5.3.0
What datasource are you using?
Postgres/ Elastisearch/ Promethsus
What OS are you running grafana on?
Centos
What did you do?
I'm using the k8s persistent volume for the grafana. I only set 1Gi volume size for it.
But after several days later, when I check the grafana.db file under my host, it turns to be 20Gi.
What's the content in this file? And why the size increased frequently?
grafana@grafana-0:/var/lib/grafana/data$ ls -al
total 20619528
drwxrwxrwx 2 root root 24 Dec 28 00:57 .
drwxrwxrwx 1 grafana grafana 29 Dec 28 00:55 ..
-rwxrwxrwx 1 grafana grafana 21098926080 Dec 28 00:57 grafana.db
What was the expected result?
What happened instead?
If related to metric query / data viz:
Include raw network request & response: get by opening Chrome Dev Tools (F12, Ctrl+Shift+I on windows, Cmd+Opt+I on Mac), go the network tab.
The text was updated successfully, but these errors were encountered: