Fix buckets for query timing
authorTim Buchwaldt <tim@buchwaldt.ws>
Sat, 12 Nov 2022 10:23:44 +0000 (11:23 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 15 Dec 2022 01:04:56 +0000 (01:04 +0000)
lib/pleroma/web/telemetry.ex

index f7e9d5ca747fbebf34b559ebf7596f631ec4e722..546c39f05b4578ee4d5dca4dd928c3ef6108ddd4 100644 (file)
@@ -37,7 +37,7 @@ defmodule Pleroma.Web.Telemetry do
         unit: {:native, :second},
         tags: [:route],
         reporter_options: [
-          buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
+          buckets: [0.1, 0.2, 0.5, 1, 2.5, 5, 10, 25, 50, 100, 250, 500, 1000]
         ]
       ),
 
@@ -48,7 +48,7 @@ defmodule Pleroma.Web.Telemetry do
         measurement: :total_time,
         unit: {:native, :millisecond},
         reporter_options: [
-          buckets: [0.01, 0.025, 0.05, 0.1, 0.2, 0.5, 1, 2.5, 5, 10]
+          buckets: [0.1, 0.2, 0.5, 1, 2.5, 5, 10, 25, 50, 100, 250, 500, 1000]
         ]
       ),
       distribution(