Library panels
Before you can use library panels, you have to create them.
To create a library panel:
- Create a Grafana panel as you normally would, following instructions in . You an also use an existing panel.
- Click the title of the panel and then click Edit. The panel opens in edit mode.
In the panel display options (side pane), click the down arrow option to bring changes to the visualization.
In Library panel name, enter the name.
- In Save in folder, select the folder to save the library panel. By default, the General folder is selected.
- Click Create library panel to save your changes.
- Save the dashboard.
Also, library panels can also be created using the “Share” option for any panel.
Once created, you can modify the library panel using any dashboard on which it appears. Once the library panel changes are saved, all instances of the library panel will reflect these modifications.
To add a library panel to a dashboard:
Hover over the + option on the left menu, then select Create from the drop-down options. The Add panel dialog opens.
Click the Add a panel from the panel library option. You will see a list of your library panels.
- Filter the list or search to find the panel you want to add.
- Click your desired panel and add it to the dashboard.
To view and manage existing library panels:
Search for a specific library panel if you know its name. You can also filter the panels by folder or type.
In case you have a library panel on your dashboard that want to modify it without affecting all other instances of the library panel, you can unlink the library panel.
To unlink a library panel from a dashboard:
- Hover over Dashboard on the left menu, and then click Library panels.
Select a library panel that is being used in different dashboards. You will see a list of all the dashboards where the library panel is used.
Select the panel you want to unlink and update.
- Click the title of the panel and then click Edit. The panel opens in edit mode.
- Click the Unlink option on the top right corner of the UI.
Before you delete a library panel, verify that it is no longer in use on any dashboard.
- Hover over Dashboard on the left menu, and select Library panels from the drop-down options.
- Select a library panel that is being used in different dashboards. You will see a list of all the dashboards.
- Click the delete icon next to the library panel name.