Skip to content

Commit 3cea615

Browse files
committed
legacy: quote descriptions and regenerate merged config
1 parent 1fb93f7 commit 3cea615

40 files changed

Lines changed: 1508 additions & 1370 deletions

legacy/config/0000-doc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@
4444
# - 100000 stands for 10.0
4545
#
4646
# Version compatibility range is left-inclusive right-exclusive: [min, max)
47+
48+

legacy/config/0110-pg.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ pg_primary_only:
3232
fatal: true
3333
skip: false
3434
metrics:
35-
- timestamp: { usage: GAUGE ,description: current database timestamp in unix epoch }
36-
- uptime: { usage: GAUGE ,description: seconds since postmaster start }
37-
- boot_time: { usage: GAUGE ,description: postmaster boot timestamp in unix epoch }
38-
- lsn: { usage: COUNTER ,description: log sequence number, current write location }
39-
- insert_lsn: { usage: COUNTER ,description: primary only, location of current wal inserting }
40-
- write_lsn: { usage: COUNTER ,description: primary only, location of current wal writing }
41-
- flush_lsn: { usage: COUNTER ,description: primary only, location of current wal syncing }
42-
- receive_lsn: { usage: COUNTER ,description: replica only, location of wal synced to disk }
43-
- replay_lsn: { usage: COUNTER ,description: replica only, location of wal applied }
44-
- reload_time: { usage: GAUGE ,description: time when configuration was last reloaded }
45-
- conf_reload_time: { usage: GAUGE ,description: seconds since last configuration reload }
46-
- last_replay_time: { usage: GAUGE ,description: time when last transaction been replayed }
47-
- lag: { usage: GAUGE ,description: replica only, replication lag in seconds }
48-
- is_in_recovery: { usage: GAUGE ,description: 1 if in recovery mode }
49-
- is_wal_replay_paused: { usage: GAUGE ,description: 1 if wal play is paused }
35+
- timestamp: { usage: GAUGE ,description: "current database timestamp in unix epoch" }
36+
- uptime: { usage: GAUGE ,description: "seconds since postmaster start" }
37+
- boot_time: { usage: GAUGE ,description: "postmaster boot timestamp in unix epoch" }
38+
- lsn: { usage: COUNTER ,description: "log sequence number, current write location" }
39+
- insert_lsn: { usage: COUNTER ,description: "primary only, location of current wal inserting" }
40+
- write_lsn: { usage: COUNTER ,description: "primary only, location of current wal writing" }
41+
- flush_lsn: { usage: COUNTER ,description: "primary only, location of current wal syncing" }
42+
- receive_lsn: { usage: COUNTER ,description: "replica only, location of wal synced to disk" }
43+
- replay_lsn: { usage: COUNTER ,description: "replica only, location of wal applied" }
44+
- reload_time: { usage: GAUGE ,description: "time when configuration was last reloaded" }
45+
- conf_reload_time: { usage: GAUGE ,description: "seconds since last configuration reload" }
46+
- last_replay_time: { usage: GAUGE ,description: "time when last transaction been replayed" }
47+
- lag: { usage: GAUGE ,description: "replica only, replication lag in seconds" }
48+
- is_in_recovery: { usage: GAUGE ,description: "1 if in recovery mode" }
49+
- is_wal_replay_paused: { usage: GAUGE ,description: "1 if wal play is paused" }
5050

5151
pg_replica_only:
5252
name: pg
@@ -80,18 +80,20 @@ pg_replica_only:
8080
fatal: true
8181
skip: false
8282
metrics:
83-
- timestamp: { usage: GAUGE ,description: current database timestamp in unix epoch }
84-
- uptime: { usage: GAUGE ,description: seconds since postmaster start }
85-
- boot_time: { usage: GAUGE ,description: postmaster boot timestamp in unix epoch }
86-
- lsn: { usage: COUNTER ,description: log sequence number, current write location }
87-
- insert_lsn: { usage: COUNTER ,description: primary only, location of current wal inserting }
88-
- write_lsn: { usage: COUNTER ,description: primary only, location of current wal writing }
89-
- flush_lsn: { usage: COUNTER ,description: primary only, location of current wal syncing }
90-
- receive_lsn: { usage: COUNTER ,description: replica only, location of wal synced to disk }
91-
- replay_lsn: { usage: COUNTER ,description: replica only, location of wal applied }
92-
- reload_time: { usage: GAUGE ,description: time when configuration was last reloaded }
93-
- conf_reload_time: { usage: GAUGE ,description: seconds since last configuration reload }
94-
- last_replay_time: { usage: GAUGE ,description: time when last transaction been replayed }
95-
- lag: { usage: GAUGE ,description: replica only, replication lag in seconds }
96-
- is_in_recovery: { usage: GAUGE ,description: 1 if in recovery mode }
97-
- is_wal_replay_paused: { usage: GAUGE ,description: 1 if wal play is paused }
83+
- timestamp: { usage: GAUGE ,description: "current database timestamp in unix epoch" }
84+
- uptime: { usage: GAUGE ,description: "seconds since postmaster start" }
85+
- boot_time: { usage: GAUGE ,description: "postmaster boot timestamp in unix epoch" }
86+
- lsn: { usage: COUNTER ,description: "log sequence number, current write location" }
87+
- insert_lsn: { usage: COUNTER ,description: "primary only, location of current wal inserting" }
88+
- write_lsn: { usage: COUNTER ,description: "primary only, location of current wal writing" }
89+
- flush_lsn: { usage: COUNTER ,description: "primary only, location of current wal syncing" }
90+
- receive_lsn: { usage: COUNTER ,description: "replica only, location of wal synced to disk" }
91+
- replay_lsn: { usage: COUNTER ,description: "replica only, location of wal applied" }
92+
- reload_time: { usage: GAUGE ,description: "time when configuration was last reloaded" }
93+
- conf_reload_time: { usage: GAUGE ,description: "seconds since last configuration reload" }
94+
- last_replay_time: { usage: GAUGE ,description: "time when last transaction been replayed" }
95+
- lag: { usage: GAUGE ,description: "replica only, replication lag in seconds" }
96+
- is_in_recovery: { usage: GAUGE ,description: "1 if in recovery mode" }
97+
- is_wal_replay_paused: { usage: GAUGE ,description: "1 if wal play is paused" }
98+
99+

legacy/config/0120-pg_meta.yml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ pg_meta_96:
2424
min_version: 90600
2525
tags: [ cluster ]
2626
metrics:
27-
- cluster_id: { usage: LABEL ,description: cluster system identifier }
28-
- cluster_name: { usage: LABEL ,description: cluster name }
29-
- listen_port: { usage: LABEL ,description: listen port }
30-
- data_dir: { usage: LABEL ,description: path to data directory }
31-
- conf_path: { usage: LABEL ,description: path to postgresql.conf }
32-
- hba_path: { usage: LABEL ,description: path to pg_hba.conf }
33-
- wal_level: { usage: LABEL ,description: wal level }
34-
- encoding: { usage: LABEL ,description: server encoding }
35-
- version: { usage: LABEL ,description: server version in human-readable format }
36-
- ver_num: { usage: LABEL ,description: server version number in machine-readable format }
37-
- ver_str: { usage: LABEL ,description: complete version string }
38-
- extensions: { usage: LABEL ,description: server installed preload libraries }
39-
- primary_conninfo: { usage: LABEL ,description: connection string to upstream (do not set password here) }
40-
- info: { usage: GAUGE ,description: constant 1 }
27+
- cluster_id: { usage: LABEL ,description: "cluster system identifier" }
28+
- cluster_name: { usage: LABEL ,description: "cluster name" }
29+
- listen_port: { usage: LABEL ,description: "listen port" }
30+
- data_dir: { usage: LABEL ,description: "path to data directory" }
31+
- conf_path: { usage: LABEL ,description: "path to postgresql.conf" }
32+
- hba_path: { usage: LABEL ,description: "path to pg_hba.conf" }
33+
- wal_level: { usage: LABEL ,description: "wal level" }
34+
- encoding: { usage: LABEL ,description: "server encoding" }
35+
- version: { usage: LABEL ,description: "server version in human-readable format" }
36+
- ver_num: { usage: LABEL ,description: "server version number in machine-readable format" }
37+
- ver_str: { usage: LABEL ,description: "complete version string" }
38+
- extensions: { usage: LABEL ,description: "server installed preload libraries" }
39+
- primary_conninfo: { usage: LABEL ,description: "connection string to upstream (do not set password here)" }
40+
- info: { usage: GAUGE ,description: "constant 1" }
4141

4242
pg_meta_91:
4343
name: pg_meta
@@ -63,17 +63,19 @@ pg_meta_91:
6363
max_version: 90600
6464
tags: [ cluster ]
6565
metrics:
66-
- cluster_id: { usage: LABEL ,description: cluster system identifier }
67-
- cluster_name: { usage: LABEL ,description: cluster name }
68-
- listen_port: { usage: LABEL ,description: listen port }
69-
- data_dir: { usage: LABEL ,description: path to data directory }
70-
- conf_path: { usage: LABEL ,description: path to postgresql.conf }
71-
- hba_path: { usage: LABEL ,description: path to pg_hba.conf }
72-
- wal_level: { usage: LABEL ,description: wal level }
73-
- encoding: { usage: LABEL ,description: server encoding }
74-
- version: { usage: LABEL ,description: server version in human-readable format }
75-
- ver_num: { usage: LABEL ,description: server version number in machine-readable format }
76-
- ver_str: { usage: LABEL ,description: complete version string }
77-
- extensions: { usage: LABEL ,description: server installed preload libraries }
78-
- primary_conninfo: { usage: LABEL ,description: connection string to upstream (do not set password here) }
79-
- info: { usage: GAUGE ,description: constant 1 }
66+
- cluster_id: { usage: LABEL ,description: "cluster system identifier" }
67+
- cluster_name: { usage: LABEL ,description: "cluster name" }
68+
- listen_port: { usage: LABEL ,description: "listen port" }
69+
- data_dir: { usage: LABEL ,description: "path to data directory" }
70+
- conf_path: { usage: LABEL ,description: "path to postgresql.conf" }
71+
- hba_path: { usage: LABEL ,description: "path to pg_hba.conf" }
72+
- wal_level: { usage: LABEL ,description: "wal level" }
73+
- encoding: { usage: LABEL ,description: "server encoding" }
74+
- version: { usage: LABEL ,description: "server version in human-readable format" }
75+
- ver_num: { usage: LABEL ,description: "server version number in machine-readable format" }
76+
- ver_str: { usage: LABEL ,description: "complete version string" }
77+
- extensions: { usage: LABEL ,description: "server installed preload libraries" }
78+
- primary_conninfo: { usage: LABEL ,description: "connection string to upstream (do not set password here)" }
79+
- info: { usage: GAUGE ,description: "constant 1" }
80+
81+

legacy/config/0130-pg_setting.yml

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,36 +57,38 @@ pg_setting:
5757
min_version: 90100
5858
tags: [ cluster ]
5959
metrics:
60-
- max_connections: { usage: GAUGE ,description: maximum number of concurrent connections to the database server }
61-
- max_prepared_transactions: { usage: GAUGE ,description: maximum number of transactions that can be in the prepared state simultaneously }
62-
- max_locks_per_transaction: { usage: GAUGE ,description: maximum number of locks per transaction }
63-
- max_worker_processes: { usage: GAUGE ,description: maximum number of background processes (9.4+) }
64-
- max_parallel_workers: { usage: GAUGE ,description: maximum number of parallel workers that can be active at one time (9.6+) }
65-
- max_parallel_workers_per_gather: { usage: GAUGE ,description: maximum number of parallel workers per Gather node (9.6+) }
66-
- max_parallel_maintenance_workers: { usage: GAUGE ,description: maximum number of parallel maintenance workers (NULL on 9.x) }
67-
- max_replication_slots: { usage: GAUGE ,description: maximum number of replication slots (9.4+) }
68-
- max_wal_senders: { usage: GAUGE ,description: maximum number of concurrent WAL sender connections }
69-
- block_size: { usage: GAUGE ,description: database block size in bytes (default 8192) }
70-
- wal_block_size: { usage: GAUGE ,description: WAL block size in bytes }
71-
- segment_size: { usage: GAUGE ,description: database file segment size in bytes }
72-
- wal_segment_size: { usage: GAUGE ,description: WAL segment size in bytes }
73-
- data_checksums: { usage: GAUGE ,description: data checksums enabled, 1=on 0=off (9.3+) }
74-
- wal_log_hints: { usage: GAUGE ,description: WAL log hints enabled, 1=on 0=off (9.4+) }
75-
- fsync: { usage: GAUGE ,description: fsync enabled (CRITICAL for data safety), 1=on 0=off }
76-
- full_page_writes: { usage: GAUGE ,description: full page writes enabled, 1=on 0=off }
77-
- wal_level: { usage: GAUGE ,description: WAL level, 1=minimal 2=archive 3=hot_standby }
78-
- checkpoint_segments: { usage: GAUGE ,description: number of checkpoint segments (pre-9.5) }
79-
- min_wal_size: { usage: GAUGE ,description: minimum WAL size in bytes (9.5+) }
80-
- max_wal_size: { usage: GAUGE ,description: maximum WAL size in bytes (9.5+) }
81-
- wal_keep_segments: { usage: GAUGE ,description: WAL segments kept for standby replication (pg_basebackup/streaming) }
82-
- shared_buffers: { usage: GAUGE ,description: shared buffer size in bytes }
83-
- work_mem: { usage: GAUGE ,description: work memory size in bytes }
84-
- maintenance_work_mem: { usage: GAUGE ,description: maintenance work memory size in bytes }
85-
- effective_cache_size: { usage: GAUGE ,description: planner's assumption about effective OS cache size in bytes }
86-
- archive_mode: { usage: GAUGE ,description: archive mode, 0=off 1=on 2=always }
87-
- autovacuum: { usage: GAUGE ,description: autovacuum enabled, 1=on 0=off }
88-
- autovacuum_max_workers: { usage: GAUGE ,description: maximum number of autovacuum worker processes }
89-
- checkpoint_timeout: { usage: GAUGE ,description: checkpoint timeout in seconds }
90-
- checkpoint_completion_target: { usage: GAUGE ,description: checkpoint completion target (0.0-1.0) }
91-
- hot_standby: { usage: GAUGE ,description: hot standby mode enabled, 1=on 0=off }
92-
- synchronous_commit: { usage: GAUGE ,description: synchronous commit level, 0=off 1=local 2=remote_write 3=on 4=remote_apply }
60+
- max_connections: { usage: GAUGE ,description: "maximum number of concurrent connections to the database server" }
61+
- max_prepared_transactions: { usage: GAUGE ,description: "maximum number of transactions that can be in the prepared state simultaneously" }
62+
- max_locks_per_transaction: { usage: GAUGE ,description: "maximum number of locks per transaction" }
63+
- max_worker_processes: { usage: GAUGE ,description: "maximum number of background processes (9.4+)" }
64+
- max_parallel_workers: { usage: GAUGE ,description: "maximum number of parallel workers that can be active at one time (9.6+)" }
65+
- max_parallel_workers_per_gather: { usage: GAUGE ,description: "maximum number of parallel workers per Gather node (9.6+)" }
66+
- max_parallel_maintenance_workers: { usage: GAUGE ,description: "maximum number of parallel maintenance workers (NULL on 9.x)" }
67+
- max_replication_slots: { usage: GAUGE ,description: "maximum number of replication slots (9.4+)" }
68+
- max_wal_senders: { usage: GAUGE ,description: "maximum number of concurrent WAL sender connections" }
69+
- block_size: { usage: GAUGE ,description: "database block size in bytes (default 8192)" }
70+
- wal_block_size: { usage: GAUGE ,description: "WAL block size in bytes" }
71+
- segment_size: { usage: GAUGE ,description: "database file segment size in bytes" }
72+
- wal_segment_size: { usage: GAUGE ,description: "WAL segment size in bytes" }
73+
- data_checksums: { usage: GAUGE ,description: "data checksums enabled, 1=on 0=off (9.3+)" }
74+
- wal_log_hints: { usage: GAUGE ,description: "WAL log hints enabled, 1=on 0=off (9.4+)" }
75+
- fsync: { usage: GAUGE ,description: "fsync enabled (CRITICAL for data safety), 1=on 0=off" }
76+
- full_page_writes: { usage: GAUGE ,description: "full page writes enabled, 1=on 0=off" }
77+
- wal_level: { usage: GAUGE ,description: "WAL level, 1=minimal 2=archive 3=hot_standby" }
78+
- checkpoint_segments: { usage: GAUGE ,description: "number of checkpoint segments (pre-9.5)" }
79+
- min_wal_size: { usage: GAUGE ,description: "minimum WAL size in bytes (9.5+)" }
80+
- max_wal_size: { usage: GAUGE ,description: "maximum WAL size in bytes (9.5+)" }
81+
- wal_keep_segments: { usage: GAUGE ,description: "WAL segments kept for standby replication (pg_basebackup/streaming)" }
82+
- shared_buffers: { usage: GAUGE ,description: "shared buffer size in bytes" }
83+
- work_mem: { usage: GAUGE ,description: "work memory size in bytes" }
84+
- maintenance_work_mem: { usage: GAUGE ,description: "maintenance work memory size in bytes" }
85+
- effective_cache_size: { usage: GAUGE ,description: "planner's assumption about effective OS cache size in bytes" }
86+
- archive_mode: { usage: GAUGE ,description: "archive mode, 0=off 1=on 2=always" }
87+
- autovacuum: { usage: GAUGE ,description: "autovacuum enabled, 1=on 0=off" }
88+
- autovacuum_max_workers: { usage: GAUGE ,description: "maximum number of autovacuum worker processes" }
89+
- checkpoint_timeout: { usage: GAUGE ,description: "checkpoint timeout in seconds" }
90+
- checkpoint_completion_target: { usage: GAUGE ,description: "checkpoint completion target (0.0-1.0)" }
91+
- hot_standby: { usage: GAUGE ,description: "hot standby mode enabled, 1=on 0=off" }
92+
- synchronous_commit: { usage: GAUGE ,description: "synchronous commit level, 0=off 1=local 2=remote_write 3=on 4=remote_apply" }
93+
94+

0 commit comments

Comments
 (0)