Add metrics example (#671)

This commit is contained in:
David Pedersen
2021-12-28 15:58:48 +01:00
committed by GitHub
parent 031e0fd472
commit 5698fb8be9
3 changed files with 113 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
[package]
name = "example-prometheus-metrics"
version = "0.1.0"
edition = "2018"
publish = false
[dependencies]
axum = { path = "../../axum" }
axum-extra = { path = "../../axum-extra" }
metrics = "0.17"
metrics-exporter-prometheus = "0.7"
tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }