From aeb2ca63f812be8a5e9b9ffb8774a2c0bcedffe2 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez Date: Mon, 4 Nov 2024 00:01:54 -0500 Subject: [PATCH] Add missing buckets --- middleware.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/middleware.go b/middleware.go index c8ae755..c643a7e 100644 --- a/middleware.go +++ b/middleware.go @@ -71,6 +71,24 @@ func create(registry prometheus.Registerer, serviceName, namespace, subsystem st Help: "Duration of all HTTP requests by status code, method and path.", ConstLabels: constLabels, Buckets: []float64{ + 0.000000001, // 1ns + 0.000000002, + 0.000000005, + 0.00000001, // 10ns + 0.00000002, + 0.00000005, + 0.0000001, // 100ns + 0.0000002, + 0.0000005, + 0.000001, // 1µs + 0.000002, + 0.000005, + 0.00001, // 10µs + 0.00002, + 0.00005, + 0.0001, // 100µs + 0.0002, + 0.0005, 0.001, // 1ms 0.002, 0.005,