swarm-controller: export jobq state rollup as OTEL gauges

This commit is contained in:
damocles 2026-08-19 17:22:55 +02:00 committed by mara
commit 1f5a7b71ed
4 changed files with 278 additions and 0 deletions

View file

@ -37,6 +37,7 @@ use utoipa_axum::{router::OpenApiRouter, routes};
mod auth;
mod forge;
mod jobq_metrics;
mod status;
mod webhook;
@ -916,6 +917,7 @@ async fn main() -> Result<()> {
hive_jobq::resources::ResourceTable::new(),
)));
spawn_jobq_worker(Arc::clone(&jobq), deps);
jobq_metrics::spawn_exporter(Arc::clone(&jobq));
// Same "log and carry on" shape as the queue/bridge/forge wiring above.
// A controller that cannot hold a webhook secret still serves every