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 operator endless (in loop) get dashboards when using url #683
Comments
When I enabled debug logs for operator I see that it running "periodic dashboard resync" EACH 10 seconds. 2022-02-13T18:07:28.190Z INFO running periodic dashboard resync
2022-02-13T18:07:29.577Z INFO running periodic notificationchannel resync
2022-02-13T18:07:33.551Z DEBUG action-runner ( 0) SUCCESS update grafana service
2022-02-13T18:07:33.569Z DEBUG action-runner ( 1) SUCCESS update grafana data persistentVolumeClaim
2022-02-13T18:07:33.595Z DEBUG action-runner ( 2) SUCCESS update grafana service account
2022-02-13T18:07:33.615Z DEBUG action-runner ( 3) SUCCESS update grafana config
2022-02-13T18:07:33.615Z DEBUG action-runner ( 4) SUCCESS plugins unchanged
2022-02-13T18:07:33.651Z DEBUG action-runner ( 5) SUCCESS update grafana deployment
2022-02-13T18:07:33.651Z DEBUG action-runner found value for GF_SECURITY_ADMIN_USER in secret grafana-credentials
2022-02-13T18:07:33.651Z DEBUG action-runner found value for GF_SECURITY_ADMIN_PASSWORD in secret grafana-credentials
2022-02-13T18:07:33.651Z DEBUG action-runner ( 6) SUCCESS looking for admin credentials in secret grafana-credentials
2022-02-13T18:07:33.651Z DEBUG action-runner ( 7) SUCCESS check deployment readiness
2022-02-13T18:07:33.651Z DEBUG grafana-controller desired cluster state met
2022-02-13T18:07:38.191Z INFO running periodic dashboard resync
2022-02-13T18:07:39.577Z INFO running periodic notificationchannel resync
2022-02-13T18:07:43.687Z DEBUG action-runner ( 0) SUCCESS update grafana service
2022-02-13T18:07:43.709Z DEBUG action-runner ( 1) SUCCESS update grafana data persistentVolumeClaim
2022-02-13T18:07:43.748Z DEBUG action-runner ( 2) SUCCESS update grafana service account
2022-02-13T18:07:43.777Z DEBUG action-runner ( 3) SUCCESS update grafana config
2022-02-13T18:07:43.777Z DEBUG action-runner ( 4) SUCCESS plugins unchanged
2022-02-13T18:07:43.817Z DEBUG action-runner ( 5) SUCCESS update grafana deployment
2022-02-13T18:07:43.817Z DEBUG action-runner found value for GF_SECURITY_ADMIN_USER in secret grafana-credentials
2022-02-13T18:07:43.817Z DEBUG action-runner found value for GF_SECURITY_ADMIN_PASSWORD in secret grafana-credentials
2022-02-13T18:07:43.817Z DEBUG action-runner ( 6) SUCCESS looking for admin credentials in secret grafana-credentials
2022-02-13T18:07:43.817Z DEBUG action-runner ( 7) SUCCESS check deployment readiness
2022-02-13T18:07:43.818Z DEBUG grafana-controller desired cluster state met Why we need that so often? Is it possible disable or increase "dashboard resync" time to minutes/hours to decrease load (and traffic) on git? With few dashboards this is not a big problem, but with >100 it could be a problem. Update: found that this sync time interval seems hardcoded :( ./grafana-operator/controllers/config/controller_config.go: RequeueDelay = time.Second * 10 Any thoughts? |
In some ways this might be related to: #597 If you want a workaround I would recommend to stop using this feature and instead just use the standard yaml to import your dashboard. |
@Halytskyi Ok, so there shouldn't be any reason to download the dashboard after the first time it succeeds. It could be because we're unable to determine if the dashboard is already in Grafana. We might need to at least specify the name in addition to the URL. Needs some investigation. |
I think #689 might help with this, since I ended up adding some caching functionality at the same time as the rate limiting. |
@Halytskyi I will close this since I think this should be solved now. |
@NissesSenap, this is issue still not fixed. |
Describe the bug
I storing dashboards in my local git (Gitea). For download dashboards to Grafana I use simple manifest like:
Everything works, after downloading dashboards I don't see any new messages in Grafana Operator. But when I checked logs of Gitea I noticed that Grafana Operator send endless request to get dashboards. I don't think that it's expected behavior and from other side it making unnecessary load on git.
It added unnecessary load on CPU:
Additional memory usage (+ ~120MiB) and traffic (+ ~450kB/s):
And this is just for 37 dashboards. If someone keep dashboards on external resources it's a big problem at least from traffic consumption side.
Logs with request from Gitea:
Tried re-deploy/restart Grafana Operator - didn't help.
Tried with different Grafana versions 7.x (7.5.11, 7.5.15); 8.x (8.3.4, 8.3.6)
Runtime (please complete the following information):
The text was updated successfully, but these errors were encountered: