mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
prometheus postfix exporter test: check showq
This commit is contained in:
parent
f412df1f6b
commit
0e3f631831
|
@ -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'")
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue