Grafana Azure plus datasource plugin provides additional azure capabilities to grafana. For examples and screenshots, refer here.
- Azure Resource Graph
- Azure Cost Analysis
- Azure Service Health
There are multiple ways to install this plugin
Download the zip file from github and extract into your grafana plugin folder. Then restart Grafana.
If you are using grafana-cli, execute the following command to install the plugin
grafana-cli --pluginUrl https://github.com/yesoreyeram/grafana-azure-datasource/archive/master.zip plugins install yesoreyeram-azure-datasource
If you use help chart to provision grafana, use the following config to install the plugin
plugins:
- https://github.com/yesoreyeram/grafana-azure-datasource/archive/master.zip;yesoreyeram-azure-datasource
Configuration of the plugin requires Tenant ID, Client ID and Client Secret.
If you want to use the grafana provisioning feature, use the following yaml
apiVersion: 1
datasources:
- name: <Datasource Name>
type: yesoreyeram-azure-datasource
access: proxy
isDefault: false
jsonData:
cloudName: azuremonitor
clientId: <Azure SPN ID>
tenantId: <Azure Tenant ID>
secureJsonData:
clientSecret: <Azure SPN Secret>
version: 1
readOnly: false
The client which connects to azure should have the following permissions.
In case, if you are using the cost analysis services alone, provide only the following roles to the client
For convenience, following sample dashboards are included in the plugin
- Azure Cost - By Subscription
If you want to share your dashboards to the community, Create a pull request with the dashboard json.
Following template variable queries are supported
Subscriptions()
ResourceGraph(YOUR RESOURCE GRAPH QUERY GOES HERE)
If the Resource graph query return two column, first column will be considered as display value and the second column will be considered as actual value.
Sample template variable queries are given here.