Skip to content
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

How to install the panel on all dashboards #25

Open
MMihaiMarian opened this issue Sep 3, 2021 · 1 comment
Open

How to install the panel on all dashboards #25

MMihaiMarian opened this issue Sep 3, 2021 · 1 comment

Comments

@MMihaiMarian
Copy link

It is possible to install the panel on all dashboards automatically? I have one 3K dashboards on my grafana instance.

@MacroPower
Copy link
Owner

MacroPower commented Sep 3, 2021

@MMihaiMarian Nothing pre-built that I'm aware of. But I think you could do this by adding the plugin to the underlying JSON of each dashboard. If you would like to know what needs to be added, you can export a dashboard, add the panel, re-export it, and then diff the two versions.

For actually modifying existing dashboards, there's a few ways you could potentially go about this:

  1. If you're defining your dashboards as code (Jsonnet/Grafonnet), you can merge in the plugin somewhere there.
  2. If you're storing dashboards as JSON in GitHub / some other VCS and deploying them, you could probably add it there.
  3. You could write a shell script to download all your dashboards, inject the plugin JSON, and upload the modified version.

If you find a good & standard way of doing this, please let me know or send a PR as I would love to add that to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants