tangled
alpha
login
or
join now
bad-example.com
/
microcosm-links
7
fork
atom
APIs for links and references in the ATmosphere
7
fork
atom
overview
issues
pulls
pipelines
even longer metric bucket times
bad-example.com
8 months ago
2c40dbba
c5d92b5e
+2
-2
1 changed file
expand all
collapse all
unified
split
spacedust
src
main.rs
+2
-2
spacedust/src/main.rs
···
123
123
let port = 8765;
124
124
PrometheusBuilder::new()
125
125
.set_quantiles(&[0.5, 0.9, 0.99, 1.0])?
126
126
-
.set_bucket_duration(std::time::Duration::from_secs(60))?
127
127
-
.set_bucket_count(std::num::NonZero::new(10).unwrap()) // count * duration = 10 mins. stuff doesn't happen that fast here.
126
126
+
.set_bucket_duration(std::time::Duration::from_secs(300))?
127
127
+
.set_bucket_count(std::num::NonZero::new(12).unwrap()) // count * duration = 60 mins. stuff doesn't happen that fast here.
128
128
.set_enable_unit_suffix(false) // this seemed buggy for constellation (sometimes wouldn't engage)
129
129
.with_http_listener((host, port))
130
130
.install()?;