reporter icon indicating copy to clipboard operation
reporter copied to clipboard

unauthorized

Open fehim-proses opened this issue 3 years ago • 3 comments

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

fehim-proses avatar Jan 26 '22 15:01 fehim-proses

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}

khaitun1998 avatar Feb 08 '22 07:02 khaitun1998

@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.

ObserveLite avatar Feb 27 '24 17:02 ObserveLite

@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)

alfredotasty avatar Apr 09 '24 08:04 alfredotasty