Share panel between dashboards

Hello,

Is there a way that I can have two dashboards display the same panel? The idea being that if ever I update the query in the panel, both dashboards will display the new version of the panel.

Thanks,

2 Likes

No direct answer, but there are workaround. Perhaps it’s not satisfy your need.

  1. Set the grafana.ini like below:
[security]
allow_embedding = true

[panels]
# If set to true Grafana will allow script tags in text panels. Not recommended as it enable XSS vulnerabilities.
disable_sanitize_html = true
  1. Select your panel and then open the context menu for share - Embed

Copy the script on that page

  1. Create new Dashboard
  2. Select visualisation Text
  3. Copy the scriptlet into the HTML box.
  4. Adjust the height and width to satisfy your needs.

    Also modify the time range and refresh rate.
  5. Repeat for other panels.
2 Likes

@fadjar340
Please, If I want to make this and use panel flipping automatically, Is there a way to make this?

Hi @moabd,

This feature is currently not available in Grafana i.e. Synchronize 2 Dashboards where the 2nd one is created as a Duplicate of the Original one.

Also, the above post by @fadjar340 is good for a workaround but not recommended in production because of disabling the HTML Sanitizer option.

If you like you can create a feature request about it in our GitHub Discussions by explaining the use case with details so that it gets more votes from the community to get accepted.

Here is the link to submit the request.

Hi @usman.ahmad
Regarding this point, Apache ECharts plugin doesn’t support the same flipping graphs but the values and statistic is different