docs(merge-queue): add mq_pr_time_in_queue_1h_seconds to Prometheus metrics reference#531
Conversation
…theus docs Documents the new total time in queue histogram metric, which measures end-to-end queue duration from entry to exit across all phases. Useful for teams using batching, bisection testing, or pending failure modes where wait+test time alone understates total latency. Pairs with trunk-io/trunk2#3439. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
😎 Merged successfully - details. |
|
Claude finished @samgutentag's task in 53s —— View job PR Review
The change is clean and minimal — one row added to the rolling 1-hour window metrics table. The metric is correctly typed as Minor suggestion (non-blocking): The description is noticeably more verbose than the other entries in the table:
The parenthetical
Or if you want to keep the explicit breakdown:
This is a non-blocking style suggestion — the current wording is clear and accurate. Result: ✅ No blocking issues. The metric name, type, labels, and placement are all correct. |
|
Triage status (2026-05-05): up to date with main. Needs review before merge. |
blx
left a comment
There was a problem hiding this comment.
this is accurate as already written; I added some clarifications for further detail but please feel free to reword or edit those as you like
|
Claude finished @samgutentag's task in 51s —— View job PR Review
Review summaryThe change is a clean one-row addition to the rolling 1-hour window metrics table. Metric name, type ( Typos / grammar / formattingNone found. The new row matches the markdown table syntax of the surrounding rows. Documentation best practices1. Take @blx's suggested rewording. It improves the entry on two fronts:
The engineering author's clarifications are exactly the kind of conceptual scaffolding that belongs alongside a metric definition. I'd accept those suggestions as-is. 2. Pre-existing minor issue (not introduced by this PR): 3. Re: the open question about adding a PromQL example. The "Duration analysis" section likely already covers Result: ✅ No blocking issues. Recommend accepting @blx's code suggestions before merging since they materially improve the entry. |
|
Verification status (2026-05-07, re-verified): Verified: customers can use this. Ready to publish.
Review feedback applied in commit
Merge readiness: GitHub reports Suggested next action: push |
Address the two review comments on PR #531: - Enrich the mq_pr_time_in_queue_1h_seconds row description with a link to pending-failure-depth (added .md to match the repo-wide convention for file links to that page) - Add a clarifying paragraph that "Waiting to Enter Queue" time is not counted in either Wait Duration or Time in Queue metrics; placed between the histogram bucket detail and the warning hint so it sits next to the metric definitions it clarifies Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Claude finished @samgutentag's task in 1m 25s —— View job PR Review
Review summaryThe latest commit ( Verifications
Typos / grammar / formattingNone. The new content scans cleanly. Minor style observation (non-blocking)The new row's description ends with a period:
The other three rows in the same table do not:
This is a small inconsistency, but the new description is the only one in the table that contains a parenthetical and an inline link, so a terminal period reads more naturally here. Either keep it or drop it for strict consistency — I'd leave it as-is. Open questions from PR body
Result: ✅ No blocking issues. The PR is in good shape to merge. The single minor style observation above is genuinely optional. | Branch |
|
Claude finished @samgutentag's task in 53s —— View job PR Review
Review summaryThis PR is in great shape and ready to merge. The diff is exactly what was advertised: 4 additions, 0 deletions, all in Verifications
Typos / grammar / formattingNone. The new content reads cleanly and matches the surrounding style. Minor style observation (non-blocking)The new row's description ends with a period ( Open questions from PR body
Result: ✅ No blocking issues. Ready to merge. |
Summary
Adds the new
mq_pr_time_in_queue_1h_secondshistogram metric to the Prometheus metrics reference table. This metric measures total end-to-end time a PR spends in the queue (entry to exit), covering all phases — not just wait time or test time individually.Source
Files changed
merge-queue/administration/metrics.md— added one row to the rolling 1-hour window metrics tableOpen questions
mq_pr_time_in_queue_1h_seconds) matches what's emitted in productionTest plan