Skip to content

Add job wait time metrics - #152

Open
jacek12345678 wants to merge 1 commit into
webdevops:mainfrom
jacek12345678:pr/job-wait-time-metrics
Open

jacek12345678 wants to merge 1 commit into
webdevops:mainfrom
jacek12345678:pr/job-wait-time-metrics

Conversation

@jacek12345678

Copy link
Copy Markdown

Summary

Add Azure DevOps agent pool job wait-time metrics.

Changes

  • Add the azure_devops_agentpool_job_wait_seconds Prometheus metric.
  • Report wait time for:
    • Jobs currently queued, measured until scrape time.
    • Jobs already assigned, measured from queue time to assignment time.
  • Include agent pool, job, definition, plan, scope, and state labels.
  • Clamp negative wait durations to zero.
  • Document Prometheus queries for top, maximum, and average queued wait times.

Metric

azure_devops_agentpool_job_wait_seconds

The state label is either queued or assigned.

Files Changed

  • metrics_agentpool.go
  • README.md

Validation

Tested in a work environment, no issues.

@sonarqubecloud

Copy link
Copy Markdown

@jacek12345678 jacek12345678 changed the title Added job wait time metrics Add job wait time metrics Sep 15, 2026
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.

1 participant