Watch
0
0
Fork
You've already forked hyperhive
0

fold needs-login gauge into a snapshot registrar, fix doc wording

This commit is contained in:
atlas 2026-11-09 10:42:43 +01:00
commit 790975ac8d

View file

@ -258,11 +258,16 @@ fn register_instruments(provider: &SdkMeterProvider, snapshot: Arc<Mutex<Vec<Con
})
.build();
register_closure_pullable(&meter);
register_needs_login(&meter);
register_snapshot_gauges(&meter);
register_hive_instruments(&meter);
}
/// The per-agent gauges that read hive-c0re state rather than a container sample.
fn register_snapshot_gauges(meter: &opentelemetry::metrics::Meter) {
register_closure_pullable(meter);
register_needs_login(meter);
}
/// 1 when this hive can fetch the agent's latest closure from the swarm's
/// cache and verify its signature, else 0 with the `reason` it cannot. Nothing
/// is reported until the first probe pass has run.