Skip to content

Update Mergify integration: merge queue stats metrics and dashboard#3042

Open
JulianMaurin wants to merge 1 commit into
DataDog:masterfrom
Mergifyio:julian/mrgfy-7060-mergify-oauth-stats-parity
Open

Update Mergify integration: merge queue stats metrics and dashboard#3042
JulianMaurin wants to merge 1 commit into
DataDog:masterfrom
Mergifyio:julian/mrgfy-7060-mergify-oauth-stats-parity

Conversation

@JulianMaurin

Copy link
Copy Markdown

What does this PR do?

Updates the Mergify (mergify_oauth) tile to 2.0.0, bringing it to parity with Mergify's merge queue Stats page:

  • Adds 19 mergify.queue.* metrics covering throughput (entered/merged, queue and batch size), queue health (exit reasons, check outcomes, CI retries, bisections), and performance (queue time, CI runtime, idle waits), tagged by repository, branch, queue, and priority_rule.
  • Bundles an out-of-the-box Mergify - Merge Queue Stats dashboard.
  • Deprecates the legacy operational metrics (mergify.merge_queue_length, mergify.time_to_merge.*, mergify.queue_checks_outcome) in favor of the new mergify.queue.* metrics, and removes the now-superseded Mergify Merge Queue Overview dashboard.
  • Removes the never-emitted mergify.queue_freeze.duration metric.
  • Rewrites the README overview and documents the full queue outcome / exit_reason value set.

Motivation

Customers want to monitor their Mergify merge queue in Datadog with the same depth as the in-app Stats page (throughput, queue health, performance). This update ships those metrics and a ready-to-use dashboard.

Review checklist

  • PR has a meaningful title or PR has the no-changelog label attached
  • Feature or bugfix has tests — N/A: this PR only changes tile assets (metadata.csv, dashboard JSON, manifest.json, README.md, CHANGELOG.md); validated with ddev validate all mergify_oauth and ddev validate dashboards mergify_oauth
  • Git history is clean (single commit)
  • If PR impacts documentation, docs team has been notified — README.md / metadata.csv / manifest.json changes route to @DataDog/documentation via CODEOWNERS
  • If this PR includes a log pipeline — N/A

Additional Notes

  • All metrics use the existing mergify. prefix (already shipped), so no standard-metric-allowlist change should be required.
  • The dashboard was exported from our internal Datadog dashboard; the top-level id is stripped and ddev validate dashboards passes.
  • Version bumped to 2.0.0 in CHANGELOG.md only — this is a Manifest V2 / IDP tile with no __about__.py.

@JulianMaurin JulianMaurin force-pushed the julian/mrgfy-7060-mergify-oauth-stats-parity branch from 8542766 to 336f42a Compare June 18, 2026 13:14
Add 19 mergify.queue.* stats metrics (throughput, queue health, performance)
and an out-of-the-box Merge Queue Stats dashboard. Deprecate the legacy
operational metrics (merge_queue_length, time_to_merge.*, queue_checks_outcome)
in favor of their mergify.queue.* equivalents, remove the superseded Overview
dashboard, and delete the never-emitted queue_freeze.duration. Rewrite the
overview and document the full outcome / exit_reason value set. Bump to 2.0.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JulianMaurin JulianMaurin force-pushed the julian/mrgfy-7060-mergify-oauth-stats-parity branch from 336f42a to 2ef9d29 Compare June 18, 2026 13:27
@JulianMaurin JulianMaurin marked this pull request as ready for review June 18, 2026 14:59

@sileht sileht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants