IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
947 stars 307 forks source link

unauthorized #317

Open fehim-proses opened 2 years ago

fehim-proses commented 2 years ago

error fetching dashboard BX3Gpdbnz: error obtaining dashboard from http://localhost:3000/api/dashboards/uid/BX3Gpdbnz. Got Status 401 Unauthorized, message: { "message": "Unauthorized" }

I got this message

khaitun1998 commented 2 years ago

You should create api token in grafana, then pass it into url as query string

Ex:

http://localhost:3000/api/dashboards/uid/BX3Gpdbnz?apitoken={grafana_token}

ObserveLite commented 4 months ago

@khaitun1998 yes but the Grafana Open Source doesn't give the API token for Users the API token is only available in Enterprise and Grafana cloud.

alfredotasty commented 3 months ago

@khaitun1998 yes but the Grafana Open Source doesn't give the API token for Users the API token is only available in Enterprise and Grafana cloud.

@fehim-proses

You can generate you api key

Go to Administration -> Users and access -> Service and accounts -> Add service and account -> Select Roles -> Add Service account token (API Key)