mirror of https://github.com/grafana/grafana
prometheushacktoberfestmetricsmonitoringalertinggrafanagoinfluxdbmysqlpostgresanalyticsdata-visualizationdashboardbusiness-intelligenceelasticsearch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
690 lines
29 KiB
690 lines
29 KiB
{
|
|
"$id": "https://grafana.com/plugin-metadata",
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"type": "object",
|
|
"title": "plugin.json",
|
|
"description": "The `plugin.json` file is required for all plugins. When Grafana starts, it scans the plugin folders and mounts every folder that contains a `plugin.json` file unless the folder contains a subfolder named `dist`. In that case, Grafana mounts the `dist` folder instead.",
|
|
"required": ["type", "name", "id", "info", "dependencies"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "Unique name of the plugin. If the plugin is published on grafana.com, then the plugin `id` has to follow the naming conventions.",
|
|
"pattern": "^[0-9a-z]+\\-([0-9a-z]+\\-)?(app|panel|datasource)$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "Plugin type.",
|
|
"enum": ["app", "datasource", "panel", "renderer"]
|
|
},
|
|
"info": {
|
|
"type": "object",
|
|
"description": "Metadata for the plugin. Some fields are used on the plugins page in Grafana and others on grafana.com if the plugin is published.",
|
|
"required": ["logos", "version", "updated", "keywords"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"author": {
|
|
"type": "object",
|
|
"description": "Information about the plugin author.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Author's name."
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"description": "Author's name.",
|
|
"format": "email"
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "Link to author's website.",
|
|
"format": "uri"
|
|
}
|
|
}
|
|
},
|
|
"build": {
|
|
"type": "object",
|
|
"description": "Build information",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"time": {
|
|
"type": "number",
|
|
"description": "Time when the plugin was built, as a Unix timestamp."
|
|
},
|
|
"repo": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"description": "Git branch the plugin was built from."
|
|
},
|
|
"hash": {
|
|
"type": "string",
|
|
"description": "Git hash of the commit the plugin was built from"
|
|
},
|
|
"number": {
|
|
"type": "number",
|
|
"description": ""
|
|
},
|
|
"pr": {
|
|
"type": "number",
|
|
"description": "GitHub pull request the plugin was built from"
|
|
},
|
|
"build": {
|
|
"type": "number",
|
|
"description": "Build job number used to build this plugin."
|
|
}
|
|
}
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description of plugin. Used on the plugins page in Grafana and for search on grafana.com."
|
|
},
|
|
"keywords": {
|
|
"type": "array",
|
|
"description": "Array of plugin keywords. Used for search on grafana.com.",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"links": {
|
|
"type": "array",
|
|
"description": "An array of link objects to be displayed on this plugin's project page in the form `{name: 'foo', url: 'http://example.com'}`",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Display name of the link. Special names with predefined behavior: <br/>• `documentation` - sets Documentation link on plugins detail page<br/>• `repository` - used to determine and link to repository of the plugin<br/>• `license` - sets License link on plugins detail page<br/>• `raise issue` - sets `Raise an Issue` link on plugins detail page<br/>• `sponsorship` - sets `Sponsor this developer` link on plugins detail page to direct users to how they can support your work"
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"format": "uri",
|
|
"description": "URL value to use for this specific link."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"logos": {
|
|
"type": "object",
|
|
"description": "SVG images that are used as plugin icons.",
|
|
"required": ["small", "large"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"small": {
|
|
"type": "string",
|
|
"description": "Link to the \"small\" version of the plugin logo, which must be an SVG image. \"Large\" and \"small\" logos can be the same image."
|
|
},
|
|
"large": {
|
|
"type": "string",
|
|
"description": "Link to the \"large\" version of the plugin logo, which must be an SVG image. \"Large\" and \"small\" logos can be the same image."
|
|
}
|
|
}
|
|
},
|
|
"screenshots": {
|
|
"type": "array",
|
|
"description": "An array of screenshot objects in the form `{name: 'bar', path: 'img/screenshot.png'}`",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"updated": {
|
|
"type": "string",
|
|
"description": "Date when this plugin was built.",
|
|
"pattern": "^(\\d{4}-\\d{2}-\\d{2}|\\%TODAY\\%)$"
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"description": "[SemVer](https://semver.org/) version of this commit, e.g. `6.7.1`.",
|
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|(\\%VERSION\\%)$"
|
|
}
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Human-readable name of the plugin that is shown to the user in the UI."
|
|
},
|
|
"dependencies": {
|
|
"type": "object",
|
|
"description": "Dependency information related to Grafana and other plugins.",
|
|
"required": ["grafanaDependency"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"grafanaVersion": {
|
|
"type": "string",
|
|
"description": "(Deprecated) Required Grafana version for this plugin, e.g. `6.x.x 7.x.x` to denote plugin requires Grafana v6.x.x or v7.x.x.",
|
|
"pattern": "^([0-9]+)(\\.[0-9x]+)?(\\.[0-9x])?$"
|
|
},
|
|
"grafanaDependency": {
|
|
"type": "string",
|
|
"description": "Required Grafana version for this plugin. Validated using https://github.com/npm/node-semver.",
|
|
"pattern": "^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)?(\\.[0-9x\\*]+)?(-[0-9A-Za-z-.]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x\\*]+)?(\\.[0-9x\\*]+)?(-[0-9A-Za-z-.]+)?)?$"
|
|
},
|
|
"plugins": {
|
|
"type": "array",
|
|
"description": "An array of required plugins on which this plugin depends. Only non-core (that is, external plugins) have to be specified in this list.",
|
|
"additionalItems": false,
|
|
"items": {
|
|
"type": "object",
|
|
"description": "Plugin dependency. Used to display information about plugin dependencies in the Grafana UI.",
|
|
"required": ["id", "name", "type"],
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"pattern": "^[0-9a-z]+\\-([0-9a-z]+\\-)?(app|panel|datasource)$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["app", "datasource", "panel"]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"extensions": {
|
|
"type": "object",
|
|
"description": "Plugin extensions that this plugin depends on.",
|
|
"properties": {
|
|
"exposedComponents": {
|
|
"type": "array",
|
|
"description": "An array of exposed component ids that this plugin depends on.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$schema": {
|
|
"type": "string",
|
|
"description": "Schema definition for the plugin.json file. Used primarily for schema validation."
|
|
},
|
|
"alerting": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports alerting. Requires `backend` to be set to `true`."
|
|
},
|
|
"annotations": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports annotation queries."
|
|
},
|
|
"autoEnabled": {
|
|
"type": "boolean",
|
|
"description": "Set to true for app plugins that should be enabled and pinned to the navigation bar in all orgs."
|
|
},
|
|
"backend": {
|
|
"type": "boolean",
|
|
"description": "If the plugin has a backend component."
|
|
},
|
|
"buildMode": {
|
|
"type": "string",
|
|
"description": "The build mode of the plugin. This field is set automatically at build time, so it should not be provided manually."
|
|
},
|
|
"builtIn": {
|
|
"type": "boolean",
|
|
"description": "[internal only] Indicates whether the plugin is developed and shipped as part of Grafana. Also known as a 'core plugin'."
|
|
},
|
|
"category": {
|
|
"type": "string",
|
|
"description": "Plugin category used on the Add data source page.",
|
|
"enum": ["tsdb", "logging", "cloud", "tracing", "profiling", "sql", "enterprise", "iot", "other"]
|
|
},
|
|
"enterpriseFeatures": {
|
|
"type": "object",
|
|
"description": "Grafana Enterprise specific features",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"healthDiagnosticsErrors": {
|
|
"type": "boolean",
|
|
"description": "Enable/Disable health diagnostics errors. Requires Grafana >=7.5.5.",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"executable": {
|
|
"type": "string",
|
|
"description": "The first part of the file name of the backend component executable. There can be multiple executables built for different operating system and architecture. Grafana will check for executables named `<executable>_<$GOOS>_<lower case $GOARCH><.exe for Windows>`, e.g. `plugin_linux_amd64`. Combination of $GOOS and $GOARCH can be found here: https://golang.org/doc/install/source#environment."
|
|
},
|
|
"hideFromList": {
|
|
"type": "boolean",
|
|
"description": "[internal only] Excludes the plugin from listings in Grafana's UI. Only allowed for `builtIn` plugins."
|
|
},
|
|
"includes": {
|
|
"type": "array",
|
|
"description": "Resources to include in plugin.",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalItems": false,
|
|
"properties": {
|
|
"uid": {
|
|
"type": "string",
|
|
"description": "Unique identifier of the included resource"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["dashboard", "page", "panel", "datasource"]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"component": {
|
|
"type": "string",
|
|
"description": "(Legacy) The Angular component to use for a page."
|
|
},
|
|
"role": {
|
|
"type": "string",
|
|
"description": "The minimum role a user must have to see this page in the navigation menu.",
|
|
"enum": ["Admin", "Editor", "Viewer"]
|
|
},
|
|
"action": {
|
|
"type": "string",
|
|
"description": "The RBAC action a user must have to see this page in the navigation menu. **Warning**: unless the action targets the plugin, only the action is verified, not what it applies to."
|
|
},
|
|
"path": {
|
|
"type": "string",
|
|
"description": "Used for app plugins."
|
|
},
|
|
"addToNav": {
|
|
"type": "boolean",
|
|
"description": "Add the include to the navigation menu."
|
|
},
|
|
"defaultNav": {
|
|
"type": "boolean",
|
|
"description": "Page or dashboard when user clicks the icon in the side menu."
|
|
},
|
|
"icon": {
|
|
"type": "string",
|
|
"description": "Icon to use in the side menu. For information on available icon, refer to [Icons Overview](https://developers.grafana.com/ui/latest/index.html?path=/story/docs-overview-icon--icons-overview)."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"logs": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports logs. It may be used to filter logs only features."
|
|
},
|
|
"metrics": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports metric queries. Used to enable the plugin in the panel editor."
|
|
},
|
|
"multiValueFilterOperators": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports multi value operators in adhoc filters."
|
|
},
|
|
"pascalName": {
|
|
"type": "string",
|
|
"description": "[internal only] The PascalCase name for the plugin. Used for creating machine-friendly identifiers, typically in code generation. If not provided, defaults to name, but title-cased and sanitized (only alphabetical characters allowed).",
|
|
"pattern": "^([A-Z][a-zA-Z]{1,62})$"
|
|
},
|
|
"preload": {
|
|
"type": "boolean",
|
|
"description": "Initialize plugin on startup. By default, the plugin initializes on first use, but when preload is set to true the plugin loads when the Grafana web app loads the first time. Only applicable to app plugins. When setting to `true`, implement [frontend code splitting](https://grafana.com/developers/plugin-tools/get-started/best-practices#app-plugins) to minimise performance implications."
|
|
},
|
|
"queryOptions": {
|
|
"type": "object",
|
|
"description": "For data source plugins. There is a query options section in the plugin's query editor and these options can be turned on if needed.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"maxDataPoints": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins. If the `max data points` option should be shown in the query options section in the query editor."
|
|
},
|
|
"minInterval": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins. If the `min interval` option should be shown in the query options section in the query editor."
|
|
},
|
|
"cacheTimeout": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins. If the `cache timeout` option should be shown in the query options section in the query editor."
|
|
}
|
|
}
|
|
},
|
|
"routes": {
|
|
"type": "array",
|
|
"description": "For data source plugins. Proxy routes used for plugin authentication and adding headers to HTTP requests made by the plugin. For more information, refer to [Authentication for data source plugins](https://grafana.com/developers/plugin-tools/how-to-guides/data-source-plugins/add-authentication-for-data-source-plugins).",
|
|
"items": {
|
|
"type": "object",
|
|
"description": "",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"description": "For data source plugins. The route path that is replaced by the route URL field when proxying the call."
|
|
},
|
|
"method": {
|
|
"type": "string",
|
|
"description": "For data source plugins. Route method matches the HTTP verb like `GET` or `POST`. Multiple methods can be provided as a comma-separated list."
|
|
},
|
|
"url": {
|
|
"type": "string",
|
|
"description": "For data source plugins. Route URL is where the request is proxied to."
|
|
},
|
|
"reqSignedIn": {
|
|
"type": "boolean"
|
|
},
|
|
"reqRole": {
|
|
"type": "string"
|
|
},
|
|
"reqAction": {
|
|
"type": "string",
|
|
"description": "The RBAC action a user must have to use this route. **Warning**: unless the action targets the plugin (or a nested datasource plugin), only the action is verified, not what it applies to."
|
|
},
|
|
"headers": {
|
|
"type": "array",
|
|
"description": "For data source plugins. Route headers adds HTTP headers to the proxied request."
|
|
},
|
|
"body": {
|
|
"type": "object",
|
|
"description": "For data source plugins. Route headers set the body content and length to the proxied request."
|
|
},
|
|
"tokenAuth": {
|
|
"type": "object",
|
|
"description": "For data source plugins. Token authentication section used with an OAuth API.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "URL to fetch the authentication token."
|
|
},
|
|
"scopes": {
|
|
"type": "array",
|
|
"description": "The list of scopes that your application should be granted access to.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"description": "Parameters for the token authentication request.",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"grant_type": {
|
|
"type": "string",
|
|
"description": "OAuth grant type"
|
|
},
|
|
"client_id": {
|
|
"type": "string",
|
|
"description": "OAuth client ID"
|
|
},
|
|
"client_secret": {
|
|
"type": "string",
|
|
"description": "OAuth client secret. Usually populated by decrypting the secret from the SecureJson blob."
|
|
},
|
|
"resource": {
|
|
"type": "string",
|
|
"description": "OAuth resource"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"jwtTokenAuth": {
|
|
"type": "object",
|
|
"description": "For data source plugins. Token authentication section used with an JWT OAuth API.",
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "URL to fetch the JWT token.",
|
|
"format": "uri"
|
|
},
|
|
"scopes": {
|
|
"type": "array",
|
|
"description": "The list of scopes that your application should be granted access to.",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"params": {
|
|
"type": "object",
|
|
"description": "Parameters for the JWT token authentication request.",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"token_uri": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"client_email": {
|
|
"type": "string",
|
|
"description": ""
|
|
},
|
|
"private_key": {
|
|
"type": "string",
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"urlParams": {
|
|
"type": "array",
|
|
"description": "Add URL parameters to a proxy route",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Name of the URL parameter"
|
|
},
|
|
"content": {
|
|
"type": "string",
|
|
"description": "Value of the URL parameter"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"skipDataQuery": {
|
|
"type": "boolean",
|
|
"description": "For panel plugins. Hides the query editor."
|
|
},
|
|
"state": {
|
|
"type": "string",
|
|
"description": "Marks a plugin as a pre-release.",
|
|
"enum": ["alpha", "beta"]
|
|
},
|
|
"streaming": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports streaming. Used in Explore to start live streaming."
|
|
},
|
|
"tracing": {
|
|
"type": "boolean",
|
|
"description": "For data source plugins, if the plugin supports tracing. Used for example to link logs (e.g. Loki logs) with tracing plugins."
|
|
},
|
|
"iam": {
|
|
"type": "object",
|
|
"description": "Grafana reads the Identity and Access Management section and initializes a service account for the plugin, with a tailored set of [Grafana RBAC permissions](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/custom-role-actions-scopes/#rbac-permissions-actions-and-scopes). Grafana will share the service account's bearer token with the plugin backend using the `GF_PLUGIN_APP_CLIENT_SECRET` environment variable. Requires Grafana version 10.3.0 or later. Currently, this is behind the `externalServiceAccounts` feature toggle. To try this feature out, follow this [guide](https://grafana.com/developers/plugin-tools/how-to-guides/app-plugins/implement-rbac-in-app-plugins).",
|
|
"properties": {
|
|
"permissions": {
|
|
"type": "array",
|
|
"description": "Permissions are the permissions that the plugin needs its associated service account to have to query Grafana.",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"description": "Action, for example: `teams:read`."
|
|
},
|
|
"scope": {
|
|
"type": "string",
|
|
"description": "The scope that the plugin needs to access e.g: `teams:*`."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"description": "List of RBAC roles defined by the plugin and their default assignments to basic roles (`Viewer`, `Editor`, `Admin`, `Grafana Admin`). Requires Grafana version 9.4.0 or later.",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"role": {
|
|
"type": "object",
|
|
"description": "A role groups your plugin's related RBAC permissions (ex: `Projects Admin` would group permissions to create, read, write and delete projects). The RBAC actions defined in your role must start with your plugin `id` (ex: `grafana-test-app.projects:read`).",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Display name of the role."
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Describes the aim of the role."
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"description": "RBAC permission on the plugin.",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"action": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"grants": {
|
|
"type": "array",
|
|
"description": "Default assignments of the role to Grafana basic roles (`Viewer`, `Editor`, `Admin`, `Grafana Admin`).",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"extensions": {
|
|
"type": "object",
|
|
"description": "Plugin extensions are a way to extend either the UI of core Grafana or other plugins.",
|
|
"properties": {
|
|
"addedComponents": {
|
|
"type": "array",
|
|
"description": "This list must contain all component extensions that your plugin registers to other extension points using [`.addComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#addcomponent). **Components that are not listed here won't work.**",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"targets": {
|
|
"type": "array",
|
|
"description": "The extension point ids your plugin registers the extension to, e.g. `[\"grafana/user/profile/tab\"]`",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"description": " The title of your component extension.",
|
|
"minLength": 10
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Additional information about your component extension."
|
|
}
|
|
},
|
|
"required": ["targets", "title"]
|
|
}
|
|
},
|
|
"addedLinks": {
|
|
"type": "array",
|
|
"description": "This list must contain all link extensions that your plugin registers to other extension points using [`.addLink()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#addlink). **Links that are not listed here won't work.**",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"targets": {
|
|
"type": "array",
|
|
"description": "The extension point ids your plugin registers the extension to, e.g. `[\"grafana/dashboard/panel/menu\"]`",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"description": "The title of your link extension.",
|
|
"minLength": 10
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Additional information about your link extension."
|
|
}
|
|
},
|
|
"required": ["targets", "title"]
|
|
}
|
|
},
|
|
"exposedComponents": {
|
|
"type": "array",
|
|
"description": "This list must contain all components that your plugin exposes using [`.exposeComponent()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#exposecomponent). **Components that are not listed here won't work.**",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "A unique identifier for your exposed component. This is used to reference the component in other plugins. It must be in the following format: `{PLUGIN_ID}/name-of-component/v1`. It is recommended to add a version suffix to prevent future breaking changes. E.g.: `myorg-extensions-app/exposed-component/v1`.",
|
|
"pattern": "^[0-9a-z]+-([0-9a-z]+-)?(app|panel|datasource)\\/[a-zA-Z0-9_-]+\\/v[0-9_.-]+$"
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"description": "The title of your exposed component."
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Additional information about your exposed component."
|
|
}
|
|
},
|
|
"required": ["id"]
|
|
}
|
|
},
|
|
"extensionPoints": {
|
|
"type": "array",
|
|
"description": "This list must contain all extension points that your plugin defines using [`usePluginLinks()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#usepluginlinks) or [`usePluginComponents()`](https://grafana.com/developers/plugin-tools/reference/ui-extensions#useplugincomponents). **Extension points that are not listed in here won't work.**",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "A unique identifier for your extension point. This is used to reference the extension point in other plugins. It must be in the following format: `{PLUGIN_ID}/name-of-my-extension-point/v1`. It is recommended to add a version suffix to prevent future breaking changes. E.g.: `myorg-extensions-app/extension-point/v1`.",
|
|
"pattern": "^[0-9a-z]+-([0-9a-z]+-)?(app|panel|datasource)\\/[a-zA-Z0-9_-]+\\/v[0-9_.-]+$"
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"description": "The title of your extension point."
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Additional information about your extension point."
|
|
}
|
|
},
|
|
"required": ["id"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|