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
168168[log]
169169file = /var/log/mamonsu/agent.log
170170level = 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
171180EOF
172181mamonsu bootstrap -U postgres mamonsu -M mamonsu
173182# #/etc/init.d/mamonsu start
@@ -185,6 +194,9 @@ mamonsu agent -c /etc/mamonsu/agent.conf metric-list | grep system
185194# # metric log
186195grep utilization /tmp/localhost.log || exit 7
187196grep ' 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
188200
189201# # error in zabbix server
190202(mamonsu zabbix item error $ZABBIX_CLIENT_HOST | grep ZBX_NOTSUPPORTED) && exit 8
You can’t perform that action at this time.
0 commit comments