mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 22:12:56 +00:00
They weren't added in that PR, but should be available immediately on rollout as the neon extension already defaults to 1.5.
20 lines
786 B
SQL
20 lines
786 B
SQL
WITH c AS (SELECT pg_catalog.jsonb_object_agg(metric, value) jb FROM neon.neon_perf_counters)
|
|
|
|
SELECT d.* FROM pg_catalog.jsonb_to_record((SELECT jb FROM c)) AS d(
|
|
file_cache_read_wait_seconds_count numeric,
|
|
file_cache_read_wait_seconds_sum numeric,
|
|
file_cache_write_wait_seconds_count numeric,
|
|
file_cache_write_wait_seconds_sum numeric,
|
|
getpage_wait_seconds_count numeric,
|
|
getpage_wait_seconds_sum numeric,
|
|
getpage_prefetch_requests_total numeric,
|
|
getpage_sync_requests_total numeric,
|
|
getpage_prefetch_misses_total numeric,
|
|
getpage_prefetch_discards_total numeric,
|
|
getpage_prefetches_buffered numeric,
|
|
pageserver_requests_sent_total numeric,
|
|
pageserver_disconnects_total numeric,
|
|
pageserver_send_flushes_total numeric,
|
|
pageserver_open_requests numeric
|
|
);
|