-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate Dashboards into Tenants #3696
Comments
I just had a look at it. How it currently works:Upstream doc: https://grafana.com/docs/grafana/latest/administration/provisioning/#dashboards We set some dashboard provisioners via chart values ( How it could work:Here is how I think we can update it to support orgs:
How I failed at testing itI tried to set a new dashboardprovider via Then I tried adding extraConfigs to grafana, and define my new provider in these. But the app gets overridden quite fast as well. Next stepsI could push this in giantswarm-configs for my tests, but I don't want to do multiple PRs for this test. |
So, at startup grafana does not have orgs, so grafana won't manage to load the org dashboard (and maybe even the dashboard providers) that reference non-existing orgs. So, we now have to chose:
Persistence will be discussed next week, because it's needed for clickops dashboards management. Note: grafana currently refuses PRs that improve current provisioning system, because they plan to completely rework it starting next major release (can be expected around may/june as we had 10.0.0 on 2023-06-12 and 11.0.0 on 2024-05-14) |
We decided persistence is not for now, and we want to keep proper gitops support. So, the dashboards provisioning for orgs should be done via olly-op. |
I wanted to do something similar to the datasources logic, but it looks like a bad idea. The logic for datasources is basically:
We can't do the same with dashboards because:
So we should rather work with configmap status. |
Remaining:
|
I think we're missing some private dashboards as well (I guess because they have no UID set). For instance, on alba, we have 110 private dashboards in the shared org but only 88 in the giantswarm org |
FYI some dashboards are in their apps https://github.com/search?q=org%3Agiantswarm+k8s-sidecar-target-directory&type=code |
Motivation
After we have implemented multi-tenancy with #3695 we need to use it to organize our dashboards in a better way, having a real difference between private and public dashboards for our customers.
Todo
Outcome
The text was updated successfully, but these errors were encountered: