capabilities.work

Publish a Reusable Library Panel

A 3-step recipe with Grafana. We can help you get access.

Recipe · 3 steps

Publish a Reusable Library Panel

with Grafana

Create a reusable library panel and inspect what it is connected to.

  1. Create the library panel. Dashboards will later reference it by UID rather than embedding a copy of the model, which is the whole point.
  2. Read the element back by UID to confirm the stored model and version, which is the version number any later update must supply.
  3. List the dashboards connected to this library panel. On a new element this is empty; run the same step against an existing element before changing it to see exactly which dashboards the edit will reach.
What you'll need to have ready
  • name: Name of the library panel (e.g. "Service SLO burn rate").
  • model: The panel model as JSON, the same shape as a panel inside a dashboard's panels array.
  • kind: Kind of library element; 1 for a library panel. Grafana models this as a numeric kind rather than a string.
  • folderUid: UID of the folder the element belongs to. Use an empty string for the General folder.
  • uid: Optional stable UID to assign, which keeps the panel addressable across instances.
For your developer

Arazzo workflow grafana:publish-library-panel, 3 operations: createLibraryElement → getLibraryElementByUID → getLibraryElementConnections. Specs on APIs.io.