# Queue wait times metric

**URL:** <https://forum.buildkite.community/t/queue-wait-times-metric/1220>\
**Category:** Features Requests\
**Created:** [September 1, 2020, 4:04am UTC](https://forum.buildkite.community/t/queue-wait-times-metric/1220 "2020-09-01T04:04:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![karen.sawrey](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/karen.sawrey/32/1188_2.png) [@karen.sawrey](https://forum.buildkite.community/u/karen.sawrey)\
**Post date:** [September 6, 2023, 4:50pm UTC](https://forum.buildkite.community/t/queue-wait-times-metric/1220/9 "2023-09-06T16:50:57Z")

</div>

Hello, @RRosa and welcome to the Buildkite Community Forum!

To find out the time elapsed between scheduling a job on a pipeline and the time it started, you can enable and use [clusters](https://buildkite.com/docs/clusters/overview) for your Buildkite organization - this way you’ll have the access to [queue metrics](https://buildkite.com/docs/clusters/queue-metrics) that display the information you are looking for. Keep it in mind that **enabling clusters is irreversible**!

Another way to get to this information is by using [Amazon EventBridge and a Lambda example](https://buildkite.com/docs/integrations/amazon-eventbridge#lambda-example-track-agent-wait-times-using-cloudwatch-metrics) to get the metrics pushed to CloudWatch. Example event payloads in our documentation cover [Job Scheduled](https://buildkite.com/docs/integrations/amazon-eventbridge#events-job-scheduled) and [Job Started](https://buildkite.com/docs/integrations/amazon-eventbridge#events-job-started). You can then [add an EventBridge dashboard to Grafana](https://grafana.com/grafana/dashboards/659-aws-eventbridge/).

To outline all the possible options, I should mention that you could also use Buildkite’s GraphQL API and run the following query:

```auto
query {
  pipeline(slug: "your-org-slug/build-slug/build-number") {
    jobs(first:1) {
      edges {
        node {
          ... on JobTypeCommand {
            scheduledAt
            startedAt
          }
        }
      }
    }
  }
}

```

Best!

Karen

---

_[View the full topic](https://forum.buildkite.community/t/queue-wait-times-metric/1220)._
