pub fn registry() -> &'static RegistryExpand description
Return the local prometheus registry that owns the supervisor collectors.
Host services typically gather() this from their /metrics handler:
ⓘ
use prometheus::Encoder;
let registry = rustrade_supervisor::prometheus::registry();
let mut buf = Vec::new();
prometheus::TextEncoder::new()
.encode(®istry.gather(), &mut buf)
.unwrap();