Mergify

Supported OS Linux Windows Mac OS

Integration version1.0.2

Overview

This integration monitors merge queue length for each configured repository in Mergify and tracks Mergify’s global availability. By sending metrics to your Datadog account, you can set up monitors for anomaly alerts and analyze merge queue performance. You can maintain awareness of Mergify service availability and optimize your development workflow using this Datadog integration.

Setup

Installation

From release

Run datadog-agent integration install -t datadog-mergify==<INTEGRATION_VERSION>.

From source

To install the Mergify check on your host:

  1. Install the developer tool on any machine.

  2. Run ddev release build mergify to build the package.

  3. Download the Datadog Agent.

  4. Upload the build artifact to any host with an Agent and run datadog-agent integration install -w path/to/mergify/dist/<ARTIFACT_NAME>.whl.

Configuration

  1. Edit the mergify.d/conf.yaml file in the conf.d/ folder at the root of your Agent’s configuration directory to start collecting your Mergify metrics.

    See the sample mergify.d/conf.yaml.example file for all available configuration options.

  2. Restart the Agent.

Validation

Run the Agent’s status subcommand and look for mergify under the Checks section.

Data Collected

Metrics

mergify.merge_queue_length
(gauge)
Merge queue length
mergify.time_to_merge.median
(gauge)
Median time to merge
Shown as second
mergify.time_to_merge.mean
(gauge)
Mean time to merge
Shown as second
mergify.queue_checks_outcome
(gauge)
Number of outcomes for the queue operation. Each outcome type can be found in the tag 'outcome_type'

Events

Mergify does not include any events.

Troubleshooting

Need help? Contact Mergify support.