Skip to content

Add converter for dashboard JSON in "export format" representation #8

Open
@amotl

Description

@amotl

Hi there,

@jeremybz / @jeremybanzhaf asked at 1:

My goal is to use the API to get the JSON representation of a dashboard, including __inputs and named datasources.

@jangaraj answered:

HTTP API for dashboard export for external use doesn’t exist. This export feature is implemented in the UI (frontend). I would say the only option is to use standard dashboard API and make that output transformed into “dashboard format for external use”. Unfortunately, that format is not documented, so you have to use reverse engineering.

Torkel Ödegaard said at 2:

This is not possible, the data is captured by the frontend so you would have to replicate what all the panel & data sources do (issue metric queries etc).

In order to implement this transformation, I would be happy to provide a place within this package, if possible. Would that make any sense / be helpful in any way?

The implementation should adhere to the specifications defined by the corresponding TypeScript code.

With kind regards,
Andreas.

/cc @jangaraj

Footnotes

  1. https://community.grafana.com/t/export-dashboard-for-external-use-via-http-api/50716

  2. https://community.grafana.com/t/snapshot-api-how-to-get-the-data/2424

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions