mirror of
https://github.com/neondatabase/neon.git
synced 2026-08-12 09:19:39 +00:00
fcb55a2aa2
Importing the wrong metric. Sigh... Signed-off-by: Tristan Partin <tristan@neon.tech>
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,
|
|
}
|