Skip to content

feat(metrics): report run queue depth in runtime metrics - #1212

Open
solnic wants to merge 1 commit into
feat/runtime-metrics-collectorfrom
feat/runtime-metrics-run-queue
Open

solnic wants to merge 1 commit into
feat/runtime-metrics-collectorfrom
feat/runtime-metrics-run-queue

Conversation

@solnic

@solnic solnic commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Adds run queue depth, reported as gauges:

  • elixir.runtime.run_queue.total - all schedulers
  • elixir.runtime.run_queue.cpu - CPU schedulers
  • elixir.runtime.run_queue.io - I/O schedulers

These count how many processes are waiting to run. A run queue that stays above zero means work is arriving faster than the schedulers can drain it, so it is the first thing to look at when latency climbs without CPU being saturated.

All three come straight out of the [:vm, :total_run_queue_lengths] measurement map that telemetry_poller already emits.


image image image

@solnic
solnic added this pull request to stack #1214 September 16, 2026 13:34
@solnic
solnic marked this pull request as draft September 16, 2026 13:37
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch from 45d08f3 to 6d71a4b Compare September 16, 2026 13:55
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch from 6d71a4b to cb35268 Compare September 16, 2026 14:05
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch from cb35268 to 22a280e Compare September 17, 2026 09:50
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch 2 times, most recently from 548d481 to ac165d7 Compare September 17, 2026 10:23
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch 2 times, most recently from ff3e451 to c30afd8 Compare September 17, 2026 11:54
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch from c30afd8 to 806a64f Compare September 17, 2026 13:14
@solnic
solnic marked this pull request as ready for review September 17, 2026 13:15
@solnic
solnic force-pushed the feat/runtime-metrics-run-queue branch from 806a64f to bf7bbfc Compare September 18, 2026 07:16
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