Files
grafana/docs/sources/as-code/observability-as-code/schema-v2/librarypanel-schema.md
2025-11-13 14:04:57 +00:00

1.9 KiB

description, keywords, labels, menuTitle, title, weight, canonical, aliases
description keywords labels menuTitle title weight canonical aliases
A reference for the JSON library panel schema used with Observability as Code.
configuration
as code
as-code
dashboards
git integration
git sync
github
library panel
products
cloud
enterprise
oss
LibraryPanelKind schema LibraryPanelKind 300 https://grafana.com/docs/grafana/latest/as-code/observability-as-code/schema-v2/librarypanel-schema/
../../../observability-as-code/schema-v2/librarypanel-schema/

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:

      "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:

Name Usage
id Panel ID for the library panel in the dashboard.
libraryPanel LibraryPanelRef
title Title for the library panel in the dashboard.

LibraryPanelRef

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

Name Usage
name Library panel name
uid Library panel uid