Add PrometheusMetrics

This commit is contained in:
Cameron Cordes
2021-04-05 20:14:34 -04:00
parent 6768140785
commit 6abc99d9b6
3 changed files with 36 additions and 1 deletions

29
Cargo.lock generated
View File

@@ -326,6 +326,20 @@ dependencies = [
"syn",
]
[[package]]
name = "actix-web-prom"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec994b7dd52e686b9ae8f63bc485e6027fb44b936ed09bdf648495b9966c36ce"
dependencies = [
"actix-http",
"actix-service",
"actix-web",
"futures",
"pin-project 1.0.6",
"prometheus",
]
[[package]]
name = "actix_derive"
version = "0.5.0"
@@ -1136,6 +1150,7 @@ dependencies = [
"actix-multipart",
"actix-rt",
"actix-web",
"actix-web-prom",
"bcrypt",
"chrono",
"diesel",
@@ -1728,6 +1743,20 @@ dependencies = [
"unicode-xid",
]
[[package]]
name = "prometheus"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d"
dependencies = [
"cfg-if 1.0.0",
"fnv",
"lazy_static",
"parking_lot",
"regex",
"thiserror",
]
[[package]]
name = "quick-error"
version = "1.2.3"