fix prometheus timeout mask metrics

This commit is contained in:
Joakim Frostegård 2024-02-04 00:03:01 +01:00
parent c4f645e03e
commit 40e33d8af1
7 changed files with 15 additions and 7 deletions

View file

@ -114,6 +114,7 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
let handle = aquatic_common::spawn_prometheus_endpoint(
config.metrics.prometheus_endpoint_address,
Some(Duration::from_secs(idle_timeout)),
Some(metrics_util::MetricKindMask::GAUGE),
)?;
join_handles.push((WorkerType::Prometheus, handle));