LibraryPanelKind
Grafana Cloud Enterprise Open source

LibraryPanelKind

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.

Following is the default library panel element JSON:

json
      "kind": "LibraryPanel",
      "spec": {
        "id": 0,
        "libraryPanel": {
          name: "",
          uid: "",
        }
        "title": ""
      }

The LibraryPanelKind consists of:

LibraryPanelKindSpec

The following table explains the usage of the library panel element JSON fields:

NameUsage
idPanel ID for the library panel in the dashboard.
libraryPanelLibraryPanelRef
titleTitle for the library panel in the dashboard.

LibraryPanelRef

The following table explains the usage of the library panel reference JSON fields:

NameUsage
nameLibrary panel name
uidLibrary panel uid