Skip to content

Commit 0d0e460

Browse files
pashagolubvitabaks
andcommitted
Apply suggestion from @vitabaks
Co-authored-by: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com>
1 parent 02519fa commit 0d0e460

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/metrics/metrics.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,7 +4267,7 @@ metrics:
42674267
11: |-
42684268
select /* pgwatch_generated */
42694269
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
4270-
case pg_is_in_recovery() when 't' then 2
4270+
case pg_is_in_recovery() WHEN 't' then 2
42714271
else (select case (select count(*) from pg_stat_replication where application_name != 'pg_basebackup') when '0' then 0 else 1 end)
42724272
end as in_recovery_int;
42734273
gauges:
@@ -4277,12 +4277,12 @@ metrics:
42774277
archiver_pending_count:
42784278
sqls:
42794279
11: |-
4280-
SELECT /* pgwatch_generated */
4280+
select /* pgwatch_generated */
42814281
(extract(epoch from now()) * 1e9)::int8 as epoch_ns,
42824282
count(*) as archiver_pending_count
4283-
FROM
4284-
(SELECT pg_ls_dir('pg_wal/archive_status')) a
4285-
WHERE
4283+
from
4284+
(select pg_ls_dir('pg_wal/archive_status')) a
4285+
where
42864286
pg_ls_dir ~ '[0-9A-F]{24}.ready';
42874287
42884288
presets:

0 commit comments

Comments
 (0)