[solved]Datasource provisioning: prometheus

So this is what I did:

  1. Created a new file called prom.yaml in the conf/provisioning/datasources directory.
  2. 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
    
  3. 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)?