mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-27 08:09:58 +00:00
16 lines
446 B
Jsonnet
16 lines
446 B
Jsonnet
local neon = import 'neon.libsonnet';
|
|
|
|
local pg_stat_bgwriter = importstr 'sql_exporter/checkpoints_timed.sql';
|
|
local pg_stat_checkpointer = importstr 'sql_exporter/checkpoints_timed.17.sql';
|
|
|
|
{
|
|
metric_name: 'checkpoints_timed',
|
|
type: 'gauge',
|
|
help: 'Number of scheduled checkpoints',
|
|
key_labels: null,
|
|
values: [
|
|
'checkpoints_timed',
|
|
],
|
|
query: if neon.PG_MAJORVERSION_NUM < 17 then pg_stat_bgwriter else pg_stat_checkpointer,
|
|
}
|