You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp()))::INT as lag"
3
+
metrics:
4
+
- lag:
5
+
usage: "GAUGE"
6
+
description: "Replication lag behind master in seconds"
7
+
8
+
pg_postmaster:
9
+
query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()"
10
+
metrics:
11
+
- start_time_seconds:
12
+
usage: "GAUGE"
13
+
description: "Time at which postmaster started"
14
+
15
+
pg_settings_shared_buffers:
16
+
query: "SELECT 8192*setting::int as bytes from pg_settings where name = 'shared_buffers'"
17
+
metrics:
18
+
- bytes:
19
+
usage: "GAUGE"
20
+
description: "Size of shared_buffers"
21
+
22
+
pg_settings_checkpoint:
23
+
query: "select (select setting::int from pg_settings where name = 'checkpoint_segments') as segments, (select setting::int from pg_settings where name = 'checkpoint_timeout') as timeout_seconds, (select setting::float from pg_settings where name = 'checkpoint_completion_target') as completion_target"
24
+
metrics:
25
+
- segments:
26
+
usage: "GAUGE"
27
+
description: "Number of checkpoint segments"
28
+
- timeout_seconds:
29
+
usage: "GAUGE"
30
+
description: "Checkpoint timeout in seconds"
31
+
- completion_target:
32
+
usage: "GAUGE"
33
+
description: "Checkpoint completion target, ranging from 0 to 1"
0 commit comments