Skip to content

Commit 0eb605c

Browse files
committed
Fix names of Prometheus http metrics
1 parent 745a581 commit 0eb605c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/telemetry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ pub(crate) fn record_request_duration(data: RequestDuration) {
624624
static PROM_REQUEST_DURATION_MS: LazyLock<prometheus::Histogram> = LazyLock::new(|| {
625625
let histogram = prometheus::Histogram::with_opts(
626626
HistogramOpts::new(
627-
"request_duration_ms",
627+
"http_server_request_duration",
628628
"Duration of get_object requests in milliseconds",
629629
)
630630
.buckets(vec![
@@ -683,7 +683,7 @@ pub(crate) fn record_response_body_size(data: ResponseBodySize) {
683683
static PROM_RESPONSE_BODY_SIZE_BYTES: LazyLock<prometheus::Histogram> = LazyLock::new(|| {
684684
let histogram = prometheus::Histogram::with_opts(
685685
HistogramOpts::new(
686-
"response_body_size_bytes",
686+
"http_server_response_body_size",
687687
"Size of get_object response bodies in bytes",
688688
)
689689
.buckets(prometheus::exponential_buckets(1024.0, 4.0, 10).unwrap()),

0 commit comments

Comments
 (0)