Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 2.44 KB

File metadata and controls

50 lines (31 loc) · 2.44 KB
ms.technology ms.topic title description ms.assetid ms.manager ms.author author monikerRange ms.date
devops-collab
conceptual
Create a service hook for Grafana
Annotate Grafana dashboards upon completion of deployments in Azure Pipelines
d588f4a0-8081-4684-b87e-64d3140b8b1c
atulmal
atulmal
azooinmyluggage
>= azure-devops-2019
07/27/2020

Create a service hook for Azure DevOps with Grafana

[!INCLUDE version]

Grafana is an open source, feature rich metrics dashboard and graph editor for Graphite, Elasticsearch, OpenTSDB, Prometheus and InfluxDB. You can use the service hook described in this article to annotate Grafana dashboards upon completion of deployments in Azure Pipelines.

Grafana dashboard with annotations

::: moniker range="azure-devops-2019"

Note

The service hook for Grafana is supported for Azure DevOps Server 2019.1 and later versions.

::: moniker-end

Create a service hook subscription

  1. Navigate to project settings:

    https://dev.azure.com/{orgName}/{project_name}/_settings/serviceHooks

    Project settings page

    Select Create Subscription.

  2. Choose Grafana among the list of services and click on Next

    Choose Grafana service

  3. For Release deployment completed event, configure the optional filters - Release pipeline name, Stage name and Status

    Configure release deployment completed filters

  4. Provide the Grafana URL and Grafana API token required for Azure DevOps to post annotations. If the Annotate deployment duration window checkbox is checked, the annotation added corresponds to the duration of the deployment (start and end timestamps of deployment). If unchecked, annotation corresponds to only the completion timestamp of the deployment. The dashboard input can be used to choose a specific dashboard as the target of annotations rather than the default behaviour of annotating all dashboards. Click on Test to verify that Azure DevOps is able to use the provided configuration and successfully create a subscription. Once verified, click on Finish to complete the creation of subscription.

    Annotation settings