# How to get queue size?

**URL:** https://community.temporal.io/t/how-to-get-queue-size/15584
**Category:** Community Support
**Created:** [December 9, 2024, 10:13pm UTC](https://community.temporal.io/t/how-to-get-queue-size/15584 "2024-12-09T22:13:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sanel](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sanel](https://community.temporal.io/u/sanel)
#### Post date: [December 9, 2024, 10:13pm UTC](https://community.temporal.io/t/how-to-get-queue-size/15584/1 "2024-12-09T22:13:03Z")

</div>

Hi everyone,

I would like to know if there is a way to obtain the size of the Temporal queue and assess the overall queue state (I’m aware of the talk here [1]).

I came across some metrics that seem related to the queue, such as “taskqueue\_processed,” “taskqueue\_deleted,” “taskqueue\_outstanding,” and “loaded\_task\_queue\_count.” However, I couldn’t find any documentation explaining how these metrics relate to the actual queue.

Any insights would be appreciated!

Best regards,  
Sanel

[1] [Is there a way to see what is on the task queues? - #12 by tihomir](https://community.temporal.io/t/is-there-a-way-to-see-what-is-on-the-task-queues/473/12)

---

<div class="post-metadata">

### Author: ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)
#### Post date: [December 9, 2024, 11:10pm UTC](https://community.temporal.io/t/how-to-get-queue-size/15584/2 "2024-12-09T23:10:11Z")

</div>

Enhanced task queue info was added since the thread you linked to:

> **[Worker performance | Temporal Platform Documentation](https://docs.temporal.io/develop/worker-performance#task-queue-metrics)**
>
> Optimize Temporal SDK performance by fine-tuning maxConcurrentWorkflowTaskExecutionSize, Worker Cache options, and Poll Success Rate. Ensure balanced Worker resources and monitor metrics for best results.

---

<div class="post-metadata">

### Author: ![sanel](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sanel](https://community.temporal.io/u/sanel)
#### Post date: [December 9, 2024, 11:57pm UTC](https://community.temporal.io/t/how-to-get-queue-size/15584/3 "2024-12-09T23:57:22Z")

</div>

Thank you for your fast reply @tihomir 🙂 Can I monitor these metrics then [1] or I’ll have to use SDK or RPC? I can’t find them in my Temporal prometheus scrape link, I assume they were added after 1.23? My version is _0.12.0 (server 1.23.0) (ui 2.26.2)_

[1] [temporal/common/metrics/metric\_defs.go at c8b91e1317b08500f3cae01357f2fc936d2b3d2e · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/blob/c8b91e1317b08500f3cae01357f2fc936d2b3d2e/common/metrics/metric_defs.go#L1035)

---

<div class="post-metadata">

### Author: ![sanel](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sanel](https://community.temporal.io/u/sanel)
#### Post date: [December 10, 2024, 2:39pm UTC](https://community.temporal.io/t/how-to-get-queue-size/15584/4 "2024-12-10T14:39:19Z")

</div>

Quick update: after updating Temporal server to 1.25.2, I see `approximate_*` metrics on the scrape endpoint. Thank you @tihomir!
