Azure Devops Datasource for Grafana. Gets stats from Azure devops into Grafana.
NOTE: This is a work in progress and not intended to be used anywhere in production. No warranty or guarantee provided.
The Azure Devops data source Plugin provides the following queries you can specify in the Query field in the variable edit view. They allow you to fill a variable’s options list.
Name | Description |
---|---|
Projects() | List of Azure Devops Projects |
Teams(YourProjectName) | List of Teams for a Project |
Pipelines(YourProjectName) | List of Pipelines for a Project |
Note: Azure Devops datasource plugin does not support multiple values for templates yet.
This plugin is not yet published to grafana. But, still there are multiple ways you can install and use the 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-devops-datasource/archive/master.zip plugins install yesoreyeram-azuredevops-datasource
If you use help chart to provision grafana, use the following config to install the plugin
plugins:
- https://github.com/yesoreyeram/grafana-azure-devops-datasource/archive/master.zip;yesoreyeram-azuredevops-datasource
Configuration of the plugin requires following field.
Field | Description |
---|---|
url | URL for the azure devops service. Typically, it will will https://dev.azure.com/YOUR_INSTNACE_NAME of https://YOUR_INSTANCE_NAME.visualstudio.com . Use one of the mentioned formats |
Basic Auth | Enabled |
User | The user name of who generated PAT token. This can be any dummy value. Typically, specify username for consistency. |
Password | PAT Token with reader access |
If you want to use the grafana provisioning feature, use the following yaml
apiVersion: 1
datasources:
- name: <Datasource Name>
type: yesoreyeram-azuredevops-datasource
access: proxy
isDefault: false
url: <YOUR_AZURE_DEVOPS_INSTANCE_URL>
basicAuth: true
basicAuthUser: username
withCredentials: false
secureJsonData:
basicAuthPassword: <PAT Token>
version: 1
readOnly: false
Based on what services you want to use in the Plugin, provide corresponding Read
and Status
permissions as required. Detailed screenshots and instruction to generate PAT token given here and there
Though this plugin is not ready for production use; Feel free to test, create bugs / pull requests.
Co-Contributors are welcome. Reach out me at my twitter handle @yesoreyeram for details.