What Grafana version and what operating system are you using?
Grafana v10.1.5 (849c612fcb)
What are you trying to achieve?
I’ve provisioned a datasource without specifiying uid
. So I can’t share provisioned dashboards between all instances.
So I just want the datasource to have same and fixed uid
over all instances.
How are you trying to achieve it?
- I tried to just update the YAML file
- I tried to remove from Web UI
- I removed it from YAML file
- I added
deleteDatasources
in YAML file - I tried to trigger a datasource reload from API with
Admin
service account token - I tried to remove datasource from API by id with
Admin
service account token - I tried to remove datasource from API by uid with
Admin
service account token
What happened?
- Nothing
- Can’t.
Delete
button is disabled - Nothing
- Nothing
- I get 403 Forbidden while service acount is Admin
{
"accessErrorId": "ACE4020887645",
"message": "You'll need additional permissions to perform this action. Permissions needed: provisioning:reload",
"title": "Access denied"
}
- I get 403 Forbidden while service acount is Admin (no detail)
- I get 403 Forbidden while service acount is Admin (no detail)
What did you expect to happen?
Be able to update uid or just remove datasource the provisioned a new one.
Can you copy/paste the configuration(s) that you are having problems with?
Initial one:
# datasources.yaml
apiVersion: 1
datasources:
- name: "Loki"
type: "loki"
access: "proxy"
url: "http://loki:3100"
Update with uid:
# datasources.yaml
apiVersion: 1
datasources:
- name: "Loki"`
uid: "loki"
type: "loki"
access: "proxy"
url: "http://loki:3100"
Remove:
# datasources.yaml
apiVersion: 1
datasources: []
Delete:
# datasources.yaml
apiVersion: 1
deleteDatasources:
- name: "Loki"
orgId: 1
datasources: []
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us
logger=context userId=15 orgId=1 uname=sa-temporary-debugger t=2025-04-10T06:32:34.146612002Z level=info msg="Access denied" userID=15 accessErrorID=ACE4020887645 permissions="action:provisioning:reload scopes:provisioners:datasources"
logger=context userId=15 orgId=1 uname=sa-temporary-debugger t=2025-04-10T06:32:34.148099058Z level=info msg="Request Completed" method=POST path=/api/admin/provisioning/datasources/reload status=403 remote_addr=[::1] time_ms=35 duration=35.434207ms size=169 referer= handler=/api/admin/provisioning/datasources/reload
logger=context userId=15 orgId=1 uname=sa-temporary-debugger t=2025-04-10T06:42:38.283540167Z level=info msg="Request Completed" method=DELETE path=/api/datasources/3 status=403 remote_addr=[::1] time_ms=22 duration=22.754428ms size=49 referer= handler=/api/datasources/:id
logger=context userId=15 orgId=1 uname=sa-temporary-debugger t=2025-04-10T06:43:39.126622718Z level=info msg="Request Completed" method=DELETE path=/api/datasources/uid/P8E80F9AEF21F6940 status=403 remote_addr=[::1] time_ms=27 duration=27.613311ms size=49 referer= handler=/api/datasources/uid/:uid
Did you follow any online instructions? If so, what is the URL?
Already provided above