You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1a0d753
Browse filesBrowse the repository at this point in the historyBrowse files
feat(webapp,run-engine,core,clickhouse): surface total concurrency in metrics and dashboard
Queues with a totalConcurrencyLimit now report how they use it. The gauge
pipeline emits total running and the stored cap, ClickHouse aggregates them
into the queue metrics tiers, the queues list gets a Total column, the queue
detail page charts total running against the cap, and the per-key table shows
each key's effective limit including per-key overrides. Queue retrieve and
list API responses include the same totals.
Queue retrieve and list API responses now report total concurrency usage. When a queue has a `totalConcurrencyLimit`, `concurrency.total` includes the effective cap, the declared base, any active override, and how many runs are in flight across all concurrency keys.
tooltip="Runs in flight across all concurrency keys, against the queue's total concurrency limit. Only queues with a totalConcurrencyLimit show a value."
705
+
>
706
+
Total
707
+
</TableHeaderCell>
701
708
<TableHeaderCell
702
709
alignment="right"
703
710
tooltipContentClassName="max-w-max"
@@ -866,6 +873,29 @@ function QueuesWithMetricsView() {
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues_.$queueParam/route.tsx
+65-4Lines changed: 65 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -392,7 +392,12 @@ export default function Page() {
// leading zeros so the reference line doesn't start with a false 0→limit step.
480
493
carryBackfill={["limit"]}
481
494
/>
495
+
{hasTotalLimit ? (
496
+
<QueueDetailChartCard
497
+
title="Total concurrency"
498
+
info={
499
+
<>
500
+
Runs in flight across ALL concurrency keys (
501
+
<ColorSwatchcolor={COLORS.running}/>) versus the queue's total limit (
502
+
<ColorSwatchcolor={COLORS.limit}/>
503
+
).
504
+
</>
505
+
}
506
+
showLegend
507
+
className="aspect-[2/1]"
508
+
query={`SELECT timeBucket() AS t, max(max_total_running) AS running, least(max(max_total_limit), max(max_env_limit)) AS cap\nFROM queue_metrics\nGROUP BY t\nORDER BY t`}
0 commit comments