Skip to content

Commit

Permalink
feat: use microseconds for measuring pool checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
hauleth committed Nov 27, 2024
1 parent e80c9a2 commit 1e579f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/supavisor/monitoring/tenant.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ defmodule Supavisor.PromEx.Plugins.Tenant do
:supavisor_tenant_client_event_metrics,
[
distribution(
[:supavisor, :pool, :checkout, :duration, :local],
[:supavisor, :pool, :checkout, :duration, :us, :local],
event_name: [:supavisor, :pool, :checkout, :stop, :local],
measurement: :duration,
description: "Duration of the checkout local process in the tenant db pool.",
tags: @tags,
unit: {:native, :millisecond},
unit: {:native, :microsecond},
reporter_options: [
peep_bucket_calculator: Buckets
]
),
distribution(
[:supavisor, :pool, :checkout, :duration, :remote],
[:supavisor, :pool, :checkout, :duration, :us, :remote],
event_name: [:supavisor, :pool, :checkout, :stop, :remote],
measurement: :duration,
description: "Duration of the checkout remote process in the tenant db pool.",
tags: @tags,
unit: {:native, :millisecond},
unit: {:native, :microsecond},
reporter_options: [
peep_bucket_calculator: Buckets
]
Expand Down

0 comments on commit 1e579f8

Please sign in to comment.