swarm-controller: export jobq state rollup as OTEL gauges
This commit is contained in:
parent
b25aa157df
commit
1f5a7b71ed
4 changed files with 278 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue