Skip to content

Commit

Permalink
Merge pull request #10 from dscvr-one/bac-1601
Browse files Browse the repository at this point in the history
update metrics and prometheus exporter
  • Loading branch information
jeffgrunewald authored Jul 29, 2024
2 parents 94e71c1 + 525ea81 commit e71e7d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/dscvr-telemetry-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
[dependencies]
axum = "0.6"
http = "0.2"
metrics = "0.21"
metrics-exporter-prometheus = "0.12"
metrics = "0.23"
metrics-exporter-prometheus = "0.15"
4 changes: 2 additions & 2 deletions crates/dscvr-telemetry-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ pub mod axum {
("status", status),
];

metrics::increment_counter!(AXUM_HTTP_REQUESTS_TOTAL, &labels);
metrics::histogram!(AXUM_HTTP_REQUESTS_DURATION_SECONDS, latency, &labels);
metrics::counter!(AXUM_HTTP_REQUESTS_TOTAL, &labels).increment(1);
metrics::histogram!(AXUM_HTTP_REQUESTS_DURATION_SECONDS, &labels).record(latency);
}

response
Expand Down

0 comments on commit e71e7d7

Please sign in to comment.