Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

even longer metric bucket times

Changed files
+2 -2
spacedust
src
+2 -2
spacedust/src/main.rs
···
let port = 8765;
PrometheusBuilder::new()
.set_quantiles(&[0.5, 0.9, 0.99, 1.0])?
-
.set_bucket_duration(std::time::Duration::from_secs(60))?
-
.set_bucket_count(std::num::NonZero::new(10).unwrap()) // count * duration = 10 mins. stuff doesn't happen that fast here.
+
.set_bucket_duration(std::time::Duration::from_secs(300))?
+
.set_bucket_count(std::num::NonZero::new(12).unwrap()) // count * duration = 60 mins. stuff doesn't happen that fast here.
.set_enable_unit_suffix(false) // this seemed buggy for constellation (sometimes wouldn't engage)
.with_http_listener((host, port))
.install()?;