plugin.json

    dependencies

    Dependencies needed by the plugin.

    PropertyTypeRequiredDescription
    grafanaDependencystringYesRequired Grafana version for this plugin. Validated using .
    grafanaVersionstringNo(Deprecated) Required Grafana version for this plugin, e.g. to denote plugin requires Grafana v6.x.x or v7.x.x.
    pluginsobject[]NoAn array of required plugins on which this plugin depends.

    plugins

    Plugin dependency. Used to display information about plugin dependencies in the Grafana UI.

    Properties

    PropertyTypeRequiredDescription
    idstringYes
    namestringYes
    typestringYesPossible values are: app, datasource, panel.
    versionstringYes

    Properties

    PropertyTypeRequiredDescription
    addToNavbooleanNoAdd the include to the side menu.
    componentstringNo(Legacy) The Angular component to use for a page.
    defaultNavbooleanNoPage or dashboard when user clicks the icon in the side menu.
    iconstringNoIcon to use in the side menu. For information on available icon, refer to .
    namestringNo
    pathstringNoUsed for app plugins.
    rolestringNoPossible values are: Admin, Editor, Viewer.
    typestringNoPossible values are: dashboard, page, panel, datasource.

    info

    Metadata for the plugin. Some fields are used on the plugins page in Grafana and others on grafana.com if the plugin is published.

    Properties

    PropertyTypeRequiredDescription
    keywordsstring[]YesArray of plugin keywords. Used for search on grafana.com.
    logosobjectYesSVG images that are used as plugin icons.
    updatedstringYesDate when this plugin was built.
    versionstringYesProject version of this commit, e.g. 6.7.x.
    authorNoInformation about the plugin author.
    buildobjectNoBuild information
    descriptionstringNoDescription of plugin. Used on the plugins page in Grafana and for search on grafana.com.
    links[]NoAn array of link objects to be displayed on this plugin’s project page in the form {name: ‘foo’, url: ‘http://example.com'}
    screenshots[]NoAn array of screenshot objects in the form {name: ‘bar’, path: ‘img/screenshot.png’}

    Properties

    build

    Build information

    Properties

    PropertyTypeRequiredDescription
    branchstringNoGit branch the plugin was built from.
    stringNoGit hash of the commit the plugin was built from
    numbernumberNo
    prnumberNoGitHub pull request the plugin was built from
    repostringNo
    timenumberNoTime when the plugin was built, as a Unix timestamp.

    Properties

    PropertyTypeRequiredDescription
    namestringNo
    urlstringNo

    logos

    SVG images that are used as plugin icons.

    Properties

    PropertyTypeRequiredDescription
    largestringYesLink to the “large” version of the plugin logo, which must be an SVG image. “Large” and “small” logos can be the same image.
    smallstringYesLink to the “small” version of the plugin logo, which must be an SVG image. “Large” and “small” logos can be the same image.

    Properties

    PropertyTypeRequiredDescription
    namestringNo
    pathstringNo

    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.

    Properties

    routes

    Properties

    PropertyTypeRequiredDescription
    bodyobjectNoFor data source plugins. Route headers set the body content and length to the proxied request.
    headersarrayNoFor data source plugins. Route headers adds HTTP headers to the proxied request.
    jwtTokenAuthNoFor data source plugins. Token authentication section used with an JWT OAuth API.
    methodstringNoFor data source plugins. Route method matches the HTTP verb like GET or POST.
    pathstringNoFor data source plugins. The route path that is replaced by the route URL field when proxying the call.
    reqRolestringNo
    reqSignedInbooleanNo
    tokenAuthobjectNoFor data source plugins. Token authentication section used with an OAuth API.
    urlstringNoFor data source plugins. Route URL is where the request is proxied to.

    body

    For data source plugins. Route headers set the body content and length to the proxied request.

    PropertyTypeRequiredDescription

    For data source plugins. Token authentication section used with an JWT OAuth API.

    Properties

    PropertyTypeRequiredDescription
    paramsobjectNoParameters for the JWT token authentication request.
    scopesstringNo
    urlstringNoURL to fetch the JWT token.

    params

    Parameters for the JWT token authentication request.

    Properties
    PropertyTypeRequiredDescription
    client_emailstringNo
    private_keystringNo
    scopesstring[]No
    token_uristringNo

    tokenAuth

    Properties

    params

    Parameters for the token authentication request.

    Properties
    PropertyTypeRequiredDescription
    client_idstringNoOAuth client ID
    client_secretstringNoOAuth client secret. Usually populated by decrypting the secret from the SecureJson blob.
    grant_typestringNoOAuth grant type
    resourcestringNoOAuth resource