feat: add queue depth display to health metrics

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Graham McIntire 2026-02-06 18:36:34 -06:00 committed by Graham McIntire
parent 1eaf6d9ac5
commit 070241d15a
No known key found for this signature in database

View file

@ -239,7 +239,7 @@
</div>
<!-- Performance -->
<div>
<div class="mb-6">
<h3 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">
Performance
</h3>
@ -263,6 +263,27 @@
</dl>
</div>
<!-- Queue Depths -->
<div>
<h3 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-3">
Queue Depths
</h3>
<dl class="space-y-2 text-sm">
<div class="flex justify-between">
<dt class="text-gray-600 dark:text-gray-400">Pollers</dt>
<dd class="font-medium text-gray-900 dark:text-white">
{@metrics.queue_depths.pollers}
</dd>
</div>
<div class="flex justify-between">
<dt class="text-gray-600 dark:text-gray-400">Discovery</dt>
<dd class="font-medium text-gray-900 dark:text-white">
{@metrics.queue_depths.discovery}
</dd>
</div>
</dl>
</div>
<div class="mt-4 pt-4 border-t border-gray-200 dark:border-gray-700">
<p class="text-xs text-gray-500 dark:text-gray-500">
Updates every 10 seconds
@ -281,7 +302,7 @@
<% else %>
<div class="space-y-2 max-h-96 overflow-y-auto">
<%= for job <- Enum.take(@recent_events, 50) do %>
<div class="text-sm border-l-2 pl-3 py-2 <%= event_border_color(job.state) %>">
<div class={"text-sm border-l-2 pl-3 py-2 #{event_border_color(job.state)}"}>
<div class="flex items-start justify-between">
<div class="flex-1">
<p class="font-medium text-gray-900 dark:text-white">