Datasources file not loading newly added datasources

I have grafana deployment and have some existing prometheus datasources.

When i try to add a new prometheus datasource to the datasources.yaml and restart the k8s deployment grafan does not pick up the new datasources.

I have verified that the yaml configfile in /etc/grafana/provisioning/datasources/my-datasources.yaml has the latest changes.

when I query /api/datasources endpoint, I can only see the previously added datasources but not the new ones.

Not sure what I am doing wrong.

I am on grafana version 7.3.9

If I try to add the data source manually through the UI it works.

This is the my-datasources.yaml

apiVersion:1
datasources:

  • name : service-1
    type: promtheus
    url: …
    access: proxy
    editable: false
    jsonData:
    timeInterval: 15s
  • name : newly-added-service-prom
    type: promtheus
    url: …
    access: proxy
    editable: false
    jsonData:
    timeInterval: 15s

Was provisioning part of v 7?

That is ancient wow