Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting dashboard metadata through the UI #12266

Closed
bljordan opened this issue Jun 13, 2018 · 1 comment
Closed

Exporting dashboard metadata through the UI #12266

bljordan opened this issue Jun 13, 2018 · 1 comment

Comments

@bljordan
Copy link

bljordan commented Jun 13, 2018

What Grafana version are you using?

5.0.4

What datasource are you using?

Prometheus, Cloudwatch, Graphite

What OS are you running grafana on?

CoreOS

What did you do?

We are using the terraform provider for grafana (https://github.com/terraform-providers/terraform-provider-grafana).

It expects to be passed json blobs that only contain the dashboard object, but not the meta object. Additionally, the dashboard config -> view json only gives you the dashboard part, not the meta part. The API provides the whole object.
{ "meta": { "type": "db", "canSave": true, "canEdit": true, "canAdmin": false, "canStar": true, "slug": "dashboard-name", "url": "/d/XckjVRNik/dashboard-name", "expires": "0001-01-01T00:00:00Z", "created": "2018-06-13T20:50:54Z", "updated": "2018-06-13T21:19:15Z", "updatedBy": "bljordan", "createdBy": "Anonymous", "version": 2, "hasAcl": false, "isFolder": false, "folderId": 82, "folderTitle": "dashboard-name", "folderUrl": "/dashboards/f/kdhl-0Sik/dashboard-name" }, "dashboard": { "annotations": { "list": [ { <snip>

What was the expected result?

The request: It'd be nice if we could get the entire object including metadata out of the UI.

What happened instead?

Only the dashboard is provided through the UI.

References

https://github.com/terraform-providers/terraform-provider-grafana/issues/23

@marefr
Copy link
Member

marefr commented Jun 15, 2018

Use the api instead. If you use chrome dev tools network tab you can also see the full payload in UI when loading a dashboard.

@marefr marefr closed this as completed Jun 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants