Skip to content

Commit 43b6438

Browse files
committed
fix collcetor & config
* now pg_repl_10_11 covers version 11 * ttl of main branch `pg` now set to 1 * fix space margin for collectors
1 parent bb9a3be commit 43b6438

33 files changed

+60
-56
lines changed

config/collector/110-pg.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pg_primary_only:
4343
tags:
4444
- cluster
4545
- primary
46-
ttl: 10
46+
ttl: 1
4747
# timeout: 0.1
4848
min_version: 100000
4949
# max_version: 0
@@ -163,7 +163,7 @@ pg_replica_only:
163163
tags:
164164
- cluster
165165
- replica
166-
ttl: 10
166+
ttl: 1
167167
# timeout: 0.1
168168
min_version: 100000
169169
# max_version: 0
@@ -235,4 +235,3 @@ pg_replica_only:
235235
description: seconds since current backup start
236236
usage: GAUGE
237237

238-

config/collector/130-pg_setting.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ pg_setting:
6161
usage: GAUGE
6262
description: whether wal_log_hints is enabled, 1 enabled 0 disabled
6363

64-

config/collector/210-pg_repl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
pg_repl_12:
43
name: pg_repl
54
desc: PostgreSQL replication stat metrics 12+
@@ -118,7 +117,7 @@ pg_repl_10_11:
118117
119118
ttl: 10
120119
min_version: 100000
121-
max_version: 110000
120+
max_version: 120000
122121
tags:
123122
- cluster
124123

@@ -198,4 +197,5 @@ pg_repl_10_11:
198197
description: Current timestamp in unix epoch
199198
- launch_time:
200199
usage: COUNTER
201-
description: Time when this process was started, i.e., when the client connected to this WAL sender
200+
description: Time when this process was started, i.e., when the client connected to this WAL sender
201+

config/collector/220-pg_sync_standby.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ pg_sync_standby:
2424
usage: GAUGE
2525
description: Synchronous commit enabled, 1 if enabled, 0 if disabled
2626

27-

config/collector/230-pg_downstrem.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ pg_downstream:
2323
- count:
2424
usage: GAUGE
2525
description: Count of corresponding state
26+

config/collector/250-pg_recv.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
pg_recv_13:
43
name: pg_recv
54
desc: PostgreSQL walreceiver metrics 13+ (add written and flush lsn)
@@ -208,4 +207,3 @@ pg_recv_10:
208207
usage: GAUGE
209208
description: Time of current snapshot
210209

211-

config/collector/260-pg_sub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
pg_sub_10:
43
name: pg_sub
54
desc: PostgreSQL subscription statistics ()
@@ -42,3 +41,4 @@ pg_sub_10:
4241
- reported_time:
4342
usage: GAUGE
4443
description: Time of last write-ahead log location reported to origin WAL sender
44+

config/collector/270-pg_origin.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
# skip by default, require additional privilege setup
43
# GRANT SELECT ON pg_replication_origin, pg_replication_origin_status TO pg_monitor;
54
pg_origin:

config/collector/340-pg_ssl.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ pg_ssl:
1717
- disabled:
1818
usage: GAUGE
1919
description: Number of client connection that does not use ssl
20+

config/collector/350-pg_checkpoint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ pg_checkpoint:
6666
- elapse:
6767
usage: GAUGE
6868
description: Seconds elapsed since latest checkpoint in seconds
69+

0 commit comments

Comments
 (0)