@@ -81,29 +81,17 @@ format = [%(levelname)s] %(asctime)s - %(name)s - %(message)s
81
81
max_memory_usage = 41943040
82
82
interval = 15
83
83
84
- [archivecommand]
85
- max_count_files = 2
86
- interval = 15
87
-
88
84
[bgwriter]
89
85
interval = 15
90
86
91
- [cfs]
92
- force_enable = False
93
- interval = 15
94
-
95
- [checkpoint]
96
- max_checkpoint_by_wal_in_hour = 12
97
- interval = 300
98
-
99
87
[connections]
100
88
percent_connections_tr = 90
101
89
interval = 15
102
90
103
91
[databases]
104
92
bloat_scale = 0.2
105
93
min_rows = 50
106
- interval = 300
94
+ interval = 15
107
95
108
96
[pghealth]
109
97
uptime = 600
@@ -113,84 +101,82 @@ interval = 15
113
101
[instance]
114
102
interval = 15
115
103
116
- # This plugin allows detects possible memory leaks while working with PostgreSQL using /proc/pid/status and /proc/pid/statm
117
- # We use RES and SHR difference to calculate approximate volume of private anonymous backend memory.
118
- # If it exceeds private_anon_mem_threshold then that pid will be added to a message. An example is presented below
119
- # statm - 'pid: {pid}, RES {RES} - SHR {SHR} more then {private_anon_mem_threshold}\n'
120
- # Since Linux 4.5 RssAnon, RssFile and RssShmem have been added.
121
- # They allows to distinguish types of memory such as private anonymous, file-backed, and shared anonymous memory.
122
- # We are interested in RssAnon. If its value exceeds private_anon_mem_threshold then that pid will also be added to a message.
123
- # By default this plugin disabled. To enable this plugin - set bellow "enabled = False"
124
- # #interval - (onitoring frequency in seconds. 60 seconds by default
125
- # private_anon_mem_threshold - memory volume threshold after which we need an investigation about memory leak. 1GB by default.
126
- # Possible values MB, GB, TB. For example 1GB
127
- [memoryleakdiagnostic]
128
- enabled = True
104
+ [xlog]
105
+ lag_more_than_in_sec = 300
129
106
interval = 15
130
- private_anon_mem_threshold = 1GB
131
107
132
- [oldest]
133
- max_xid_age = 18000000
134
- max_query_time = 18000
108
+ [statements]
135
109
interval = 15
136
110
137
111
[pgbuffercache]
138
112
interval = 15
139
113
140
- [pglocks ]
114
+ [waitsampling ]
141
115
interval = 15
142
116
143
- # Get age (in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
144
- # https://www.postgresql.org/docs/current/sql-prepare-transaction.html
145
- # https://www.postgresql.org/docs/12/view-pg-prepared-xacts.html
146
- # max_prepared_transaction_time - age of prepared transaction in seconds.
147
- # If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
148
- [preparedtransaction]
149
- max_prepared_transaction_time = 60
117
+ [checkpoint]
118
+ max_checkpoint_by_wal_in_hour = 12
150
119
interval = 15
151
120
152
- # Get size of relations defined in this section
153
- # Relations - comma separated list of objects - tables and endexes (database_name.schema.relation) used to calculate relations size.
154
- # Example:
155
- # relations=postgres.pg_catalog.pg_class,postgres.pg_catalog.pg_user
156
- # If the relation is blocked by some process such as vacuum full or create index, the result will be -1
157
- # by default this plugin disabled. To enable this plugin - set bellow "enabled = False" and define a list of relations.
158
- [relationssize]
159
- enabled = True
160
- relations=postgres.pg_catalog.pg_class,mamonsu_test_db.mamonsu.config
161
- interval = 300
121
+ [oldest]
122
+ max_xid_age = 18000000
123
+ max_query_time = 18000
124
+ interval = 15
162
125
163
- [replication]
164
- lag_more_than_in_sec = 300
126
+ [pglocks]
165
127
interval = 15
166
128
167
- [statstatements]
129
+ [cfs]
130
+ force_enable = False
168
131
interval = 15
169
132
170
- [waitsampling]
133
+ [archivecommand]
134
+ max_count_files = 2
135
+ interval = 15
136
+
137
+ [procstat]
171
138
interval = 15
172
139
173
- [wal ]
140
+ [diskstats ]
174
141
interval = 15
175
142
176
143
[disksizes]
177
144
vfs_percent_free = 10
178
145
vfs_inode_percent_free = 10
179
146
interval = 15
180
147
181
- [diskstats ]
148
+ [memory ]
182
149
interval = 15
183
150
184
- [la]
151
+ [systemuptime]
152
+ up_time = 300
185
153
interval = 15
186
154
187
- [memory ]
155
+ [openfiles ]
188
156
interval = 15
189
157
190
158
[net]
191
159
interval = 15
192
160
193
- [openfiles]
161
+ [la]
162
+ interval = 15
163
+
164
+ [zbxsender]
165
+ interval = 10
166
+
167
+ [logsender]
168
+ interval = 2
169
+
170
+ [agentapi]
171
+ interval = 15
172
+
173
+ # Get age (in seconds) of the oldest running prepared transaction and number of all prepared transactions for two-phase commit.
174
+ # https://www.postgresql.org/docs/current/sql-prepare-transaction.html
175
+ # https://www.postgresql.org/docs/12/view-pg-prepared-xacts.html
176
+ # max_prepared_transaction_time - age of prepared transaction in seconds.
177
+ # If pgsql.prepared.oldest exceeds max_prepared_transaction_time the trigger fires.
178
+ [preparedtransaction]
179
+ max_prepared_transaction_time = 60
194
180
interval = 15
195
181
196
182
# Get size of backup catalogs stroring all WAL and backup files using pg_probackup
@@ -202,18 +188,29 @@ interval = 300
202
188
backup_dirs = /backup_dir1,/backup_dir2
203
189
pg_probackup_path = /usr/bin/pg_probackup-11
204
190
205
- [procstat]
206
- interval = 15
207
-
208
- [systemuptime]
209
- up_time = 300
191
+ # Get size of relations defined in this section
192
+ # Relations - comma separated list of objects - tables and endexes (database_name.schema.relation) used to calculate relations size.
193
+ # Example:
194
+ # relations=postgres.pg_catalog.pg_class,postgres.pg_catalog.pg_user
195
+ # If the relation is blocked by some process such as vacuum full or create index, the result will be -1
196
+ # by default this plugin disabled. To enable this plugin - set bellow "enabled = False" and define a list of relations.
197
+ [relationssize]
198
+ enabled = True
199
+ relations=postgres.pg_catalog.pg_class,mamonsu_test_db.mamonsu.config
210
200
interval = 15
211
201
212
- [agentapi]
202
+ # This plugin allows detects possible memory leaks while working with PostgreSQL using /proc/pid/status and /proc/pid/statm
203
+ # We use RES and SHR difference to calculate approximate volume of private anonymous backend memory.
204
+ # If it exceeds private_anon_mem_threshold then that pid will be added to a message. An example is presented below
205
+ # statm - 'pid: {pid}, RES {RES} - SHR {SHR} more then {private_anon_mem_threshold}\n'
206
+ # Since Linux 4.5 RssAnon, RssFile and RssShmem have been added.
207
+ # They allows to distinguish types of memory such as private anonymous, file-backed, and shared anonymous memory.
208
+ # We are interested in RssAnon. If its value exceeds private_anon_mem_threshold then that pid will also be added to a message.
209
+ # By default this plugin disabled. To enable this plugin - set bellow "enabled = False"
210
+ # #interval - (onitoring frequency in seconds. 60 seconds by default
211
+ # private_anon_mem_threshold - memory volume threshold after which we need an investigation about memory leak. 1GB by default.
212
+ # Possible values MB, GB, TB. For example 1GB
213
+ [memoryleakdiagnostic]
214
+ enabled = True
213
215
interval = 15
214
-
215
- [logsender]
216
- interval = 2
217
-
218
- [zbxsender]
219
- interval = 10
216
+ private_anon_mem_threshold = 1GB
0 commit comments