File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,15 @@ directory = /tmp
168
168
[log]
169
169
file = /var/log/mamonsu/agent.log
170
170
level = DEBUG
171
+
172
+ [relationssize]
173
+ enabled = True
174
+ relations=pg_catalog.pg_class,pg_catalog.pg_user
175
+ interval = 60
176
+
177
+ [preparedtransaction]
178
+ max_prepared_transaction_time = 60
179
+ interval = 60
171
180
EOF
172
181
mamonsu bootstrap -U postgres mamonsu -M mamonsu
173
182
# #/etc/init.d/mamonsu start
@@ -185,6 +194,9 @@ mamonsu agent -c /etc/mamonsu/agent.conf metric-list | grep system
185
194
# # metric log
186
195
grep utilization /tmp/localhost.log || exit 7
187
196
grep ' pgsql\.uptime' /tmp/localhost.log || exit 7
197
+ grep ' pgsql\.relation\.size' /tmp/localhost.log || exit 7
198
+ grep ' pgsql\.prepared\.count' /tmp/localhost.log || exit 7
199
+ grep ' pgsql\.prepared\.oldest' /tmp/localhost.log || exit 7
188
200
189
201
# # error in zabbix server
190
202
(mamonsu zabbix item error $ZABBIX_CLIENT_HOST | grep ZBX_NOTSUPPORTED) && exit 8
You can’t perform that action at this time.
0 commit comments