Menu

This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

Grafana Cloud Enterprise Open source

Manage library panels

A library panel is a reusable panel that you can use in any dashboard. When you make a change to a library panel, that change propagates to all instances of where the panel is used. Library panels streamline reuse of panels across multiple dashboards.

You can save a library panel in a folder alongside saved dashboards.

Role-based access control

You can control permissions for library panels using role-based access control (RBAC). RBAC provides a standardized way of granting, changing, and revoking access when it comes to viewing and modifying Grafana resources, such as dashboards, reports, and administrative settings.

Create a library panel

When you create a library panel, the panel on the source dashboard is converted to a library panel as well. You need to save the original dashboard once a panel is converted.

  1. Click Edit in the top-right corner of the dashboard.
  2. On the panel you want to update, hover over any part of the panel to display the menu icon on the top-right corner.
  3. Click the menu icon and select More > Create library panel.
  4. In Library panel name, enter the name.
  5. In Save in folder, select the folder to save the library panel.
  6. Click Create library panel.
  7. Click Save dashboard and Exit edit.

Once created, you can modify the library panel using any dashboard on which it appears. After you save the changes, all instances of the library panel reflect these modifications.

Add a library panel to a dashboard

Add a Grafana library panel to a dashboard when you want to provide visualizations to other dashboard users.

  1. Click Dashboards in the main menu.

  2. Click New and select New Dashboard in the dropdown.

  3. On the empty dashboard, click + Add library panel.

    You’ll see a list of your library panels.

  4. Filter the list or search to find the panel you want to add.

  5. Click a panel to add it to the dashboard.

  6. Click Save dashboard.

  7. (Optional) Enter a description of the changes you’ve made.

  8. Click Save.

Unlink a library panel when you want to make a change to the panel and not affect other instances of the library panel.

  1. Click Dashboards in the main menu.
  2. Click Library panels.
  3. Select a library panel that is being used in dashboards.
  4. Click the panel you want to unlink.
  5. In the dialog box, select the dashboard from which you want to unlink the panel.
  6. Click View panel in <dashboard name>.
  7. Click Edit in the top-right corner of the dashboard.
  8. Hover over any part of the panel you want to unlink to display the menu icon on the top-right corner.
  9. Click the menu icon and select More > Unlink library panel.
  10. Click Yes, unlink.
  11. Click Save dashboard and Exit edit.

Alternatively, if you know where the library panel is being used, you can go directly to that dashboard and start at step 7.

Replace a library panel

To replace a library panel with a different one, follow these steps:

  1. Click Dashboards in the main menu.
  2. Click Library panels.
  3. Select a library panel that is being used in different dashboards.
  4. Click the panel you want to unlink.
  5. In the dialog box, select the dashboard from which you want to unlink the panel.
  6. Click View panel in <dashboard name>.
  7. Click Edit in the top-right corner of the dashboard.
  8. Hover over any part of the panel you want to unlink to display the menu icon on the top-right corner.
  9. Click the menu icon and select More > Replace library panel.
  10. Select the replacement library panel.
  11. Click Save dashboard.
  12. (Optional) Enter a description of the changes you’ve made.
  13. Click Save and Exit edit.

Alternatively, if you know where the library panel that you want to replace is being used, you can go directly to that dashboard and start at step 7.

View a list of library panels

You can view a list of available library panels and see where those panels are being used.

  1. Click Dashboards in the main menu.

  2. Click Library panels.

    You can see a list of previously defined library panels.

    Library panels page with list of library panels

  3. Search for a specific library panel if you know its name.

    You can also filter the panels by folder or type.

  4. Click the panel to see if it’s being used in any dashboards.

  5. (Optional) If the library panel is in use, select one of the dashboards using it.

  6. (Optional) Click View panel in <dashboard name> to see the panel in context.

Delete a library panel

Delete a library panel when you no longer need it.

  1. Click Dashboards in the main menu.
  2. Click Library panels.
  3. Click the delete icon next to the library panel name.