Skip to content

Commit 7891edc

Browse files
committed
docs: Add SQL comment explaining reset_val usage for lock_timeout
1 parent 27dfb89 commit 7891edc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/pgwatch-prometheus/metrics.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,8 @@ metrics:
370370
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
371371
current_database() as tag_datname,
372372
name as tag_setting_name,
373+
-- Use reset_val for lock_timeout because pgwatch sets it to 100ms during collection,
374+
-- which would mask the actual configured value. reset_val shows the true server config.
373375
case when name = 'lock_timeout' then reset_val else setting end as tag_setting_value,
374376
unit as tag_unit,
375377
category as tag_category,

0 commit comments

Comments
 (0)