菜单
Grafana Cloud Enterprise 开源

LibraryPanelKind

库面板是可在任何仪表盘中使用的可重用面板。当您对库面板进行更改时,该更改会传播到使用该面板的所有实例。库面板简化了跨多个仪表盘的面板重用。

以下是默认的库面板元素 JSON

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

LibraryPanelKind 由以下部分组成

LibraryPanelKindSpec

下表解释了库面板元素 JSON 字段的用法

名称用法
id仪表盘中库面板的面板 ID。
libraryPanelLibraryPanelRef
title仪表盘中库面板的标题。

LibraryPanelRef

下表解释了库面板引用 JSON 字段的用法

名称用法
name库面板名称
uid库面板 UID