feat: Record process metrics (#1646)

* feat(servers): Export process metrics

* chore: update metrics related deps to get the process-metrics printed

The latest process-metrics crate depends on metrics 0.21, we use metrics
0.20. This cause the process-metrics crate doesn't record the metrics
  when use metrics macros
This commit is contained in:
Yingwen
2023-05-26 11:51:01 +08:00
committed by GitHub
parent 732784d3f8
commit c042723fc9
7 changed files with 181 additions and 40 deletions

View File

@@ -12,8 +12,8 @@ deadlock_detection = ["parking_lot"]
backtrace = "0.3"
common-error = { path = "../error" }
console-subscriber = { version = "0.1", optional = true }
metrics-exporter-prometheus = { version = "0.11", default-features = false }
metrics-util = "0.14.0"
metrics-exporter-prometheus = { version = "0.12", default-features = false }
metrics-util = "0.15"
metrics.workspace = true
once_cell = "1.10"
opentelemetry = { version = "0.17", default-features = false, features = [