test: add test in make test for relationssize and preparedtransaction
@@ -168,6 +168,15 @@ directory = /tmp
[log]
file = /var/log/mamonsu/agent.log
level = DEBUG
+
+[relationssize]
+enabled = True
+relations=pg_catalog.pg_class,pg_catalog.pg_user
+interval = 60
+
+[preparedtransaction]
+max_prepared_transaction_time = 60
+interval = 60
EOF
mamonsu bootstrap -U postgres mamonsu -M mamonsu
##/etc/init.d/mamonsu start
@@ -185,6 +194,9 @@ mamonsu agent -c /etc/mamonsu/agent.conf metric-list | grep system
## metric log
grep utilization /tmp/localhost.log || exit 7
grep 'pgsql\.uptime' /tmp/localhost.log || exit 7
+grep 'pgsql\.relation\.size' /tmp/localhost.log || exit 7
+grep 'pgsql\.prepared\.count' /tmp/localhost.log || exit 7
+grep 'pgsql\.prepared\.oldest' /tmp/localhost.log || exit 7
## error in zabbix server
(mamonsu zabbix item error $ZABBIX_CLIENT_HOST | grep ZBX_NOTSUPPORTED) && exit 8
