Configure the data source with provisioning

You can configure data sources using config files with Grafana’s provisioning system. For more information on how it works and all the settings you can set for data sources on the Provisioning documentation page Here are some provisioning examples for this data source.

Azure AD App Registration (client secret)

  1. apiVersion: 1 # config file version
  2. datasources:
  3. - name: Azure Monitor
  4. type: grafana-azure-monitor-datasource
  5. access: proxy
  6. jsonData:
  7. azureAuthType: clientsecret
  8. cloudName: azuremonitor # See table below
  9. tenantId: <tenant-id>
  10. clientId: <client-id>
  11. subscriptionId: <subscription-id> # Optional, default subscription
  12. secureJsonData:
  13. clientSecret: <client-secret>
  14. version: 1

Managed Identity

  1. apiVersion: 1 # config file version
  2. datasources:
  3. - name: Azure Monitor
  4. type: grafana-azure-monitor-datasource
  5. access: proxy
  6. jsonData:
  7. azureAuthType: msi
  8. subscriptionId: <subscription-id> # Optional, default subscription
  9. version: 1

Supported cloud names

Azure CloudValue
Microsoft Azure public cloudazuremonitor (default)
Microsoft Chinese national cloudchinaazuremonitor
US Government cloudgovazuremonitor
Microsoft German national cloud (“Black Forest”)germanyazuremonitor