alpha
Login
or
Join now
microcosm.blue
/
microcosm-rs
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
restore existing metrics behaviour
author
phil
date
1 month ago
(May 6, 2026, 10:38 AM -0400)
commit
c154ed9c
c154ed9c8acaeb7a50d1e32329bea23322670654
parent
19c6968b
19c6968b5629077907fcda5db54d921087b16ea9
+2
-1
1 changed file
Expand all
Collapse all
Unified
Split
constellation
src
bin
main.rs
+2
-1
constellation/src/bin/main.rs
Reviewed
···
301
301
302
302
fn install_metrics_server(metrics_bind: SocketAddr) -> Result<()> {
303
303
println!("installing metrics server...");
304
304
+
#[expect(deprecated, reason = "would change counters to _total suffix, needs dash updates")]
304
305
PrometheusBuilder::new()
305
306
.idle_timeout(
306
307
metrics_util::MetricKindMask::ALL,
···
309
310
.set_quantiles(&[0.5, 0.9, 0.99, 1.0])?
310
311
.set_bucket_duration(time::Duration::from_secs(30))?
311
312
.set_bucket_count(NonZero::new(10).unwrap()) // count * duration = 5 mins. stuff doesn't happen that fast here.
312
312
-
.with_recommended_naming(true)
313
313
+
.set_enable_unit_suffix(true)
313
314
.with_http_listener(metrics_bind)
314
315
.install()?;
315
316
println!("metrics server installed! listening at {metrics_bind:?}");