mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Upgrade metrics dependencies
This commit is contained in:
parent
ea06ffd513
commit
19448fbc84
7 changed files with 35 additions and 39 deletions
|
|
@ -42,9 +42,9 @@ rustls = { version = "0.23", optional = true }
|
|||
rustls-pemfile = { version = "2", optional = true }
|
||||
|
||||
# prometheus feature
|
||||
metrics = { version = "0.22", optional = true }
|
||||
metrics-util = { version = "0.16", optional = true }
|
||||
metrics-exporter-prometheus = { version = "0.14", optional = true, default-features = false, features = ["http-listener"] }
|
||||
metrics = { version = "0.24", optional = true }
|
||||
metrics-util = { version = "0.19", optional = true }
|
||||
metrics-exporter-prometheus = { version = "0.16", optional = true, default-features = false, features = ["http-listener"] }
|
||||
tokio = { version = "1", optional = true, features = ["rt", "net", "time"] }
|
||||
|
||||
# cpu pinning feature
|
||||
|
|
|
|||
|
|
@ -150,7 +150,9 @@ pub fn spawn_prometheus_endpoint(
|
|||
}
|
||||
});
|
||||
|
||||
exporter.await.context("run prometheus exporter")
|
||||
exporter
|
||||
.await
|
||||
.map_err(|err| anyhow::anyhow!("run prometheus exporter: :{:#?}", err))
|
||||
})
|
||||
})
|
||||
.context("spawn prometheus endpoint")?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue