Hi All.
I’m using kube-prometheus-stack for our observability. We are creating multiple datasources via datasource.yaml. The datasource yaml gets converted to configmap inside k8s cluster where stack is deployed.
apiVersion: 1
datasources:
- name: ${datasource_name}
type: prometheus
uid: ${datasource_name}
access: proxy
url: http://cortex-query-frontend.cortex:8080/prometheus
basicAuth: false
editable: false
isDefault: false
jsonData:
httpHeaderName1: 'X-Scope-OrgID'
secureJsonData:
httpHeaderValue1: '${datasource_name}'
We want to set scrapeInterval at datasource level to 60s. I’m adding `timeInterval: ‘60s’ Property under jsonData and deploying the helm chart. However, they are not reflecting in UI. We cannot edit datasources via UI as well.
I’m trying to reload the datasources via API calls as well. I’m trying to hit api/admin/provisioning/datasources/reload API via a local admin user. API response is below
*"accessErrorId": "ACE0068199791",*
- “message”: “You’ll need additional permissions to perform this action. Permissions needed: provisioning:reload”,*
- “title”: “Access denied”*
I cannot find a way to set timeInterval to 60s at datasource level. I dont find a way to add permissions as well.
Grafana version: 11.0.0
kube-prometheus-stack:43.0.0
Opensource grafana stack