Merge pull request #98746 from mayflower/postfix-exporter-group

prometheus postfix exporter: misc
This commit is contained in:
WilliButz
2020-09-27 22:37:38 +02:00
committed by GitHub
3 changed files with 23 additions and 6 deletions
+2
View File
@@ -466,10 +466,12 @@ let
};
exporterTest = ''
wait_for_unit("prometheus-postfix-exporter.service")
wait_for_file("/var/lib/postfix/queue/public/showq")
wait_for_open_port(9154)
succeed(
"curl -sSf http://localhost:9154/metrics | grep -q 'postfix_smtpd_connects_total 0'"
)
succeed("curl -sSf http://localhost:9154/metrics | grep -q 'postfix_up{.*} 1'")
'';
};