feat: add provisioner job queue wait time histogram and jobs enqueued counter by cstyan · Pull Request #21869 · coder/coder

coder-tasks[bot]

spikecurtis

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@cstyan @claude

The wsbuilder.Metrics were created but never registered with the
prometheus registry in the production path. This meant the
workspace_builds_enqueued_total counter was never exported.

Register in the main server flow (not enablePrometheus) so metrics
are always available, matching the pattern used by notifications.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>
Signed-off-by: Callum Styan <callumstyan@gmail.com>

spikecurtis

@cstyan cstyan deleted the callum/job-queue-metrics branch

February 12, 2026 21:40