So this is what I did:
- Created a new file called prom.yaml in the
conf/provisioning/datasources
directory. - Pasted the following text into it:
apiVersion: 1 datasources: - name: prometheusdata type: prometheus access: direct orgId: 1 url: http://localhost:9090 isDefault: true version: 1 editable: false
- Restarted Grafana
In my logs, I got this line:
INFO[03-23|15:23:15] inserting datasource from configuration logger=provisioning.datasources name=prometheusdata
And in data sources:
Are you doing something different (with Chef in your case)?