prometheus-unifi-poller-exporter: init module

This commit is contained in:
elseym
2020-09-06 17:48:19 +02:00
parent 8c49e5a78c
commit aaf0002f68
3 changed files with 48 additions and 0 deletions
+13
View File
@@ -593,6 +593,19 @@ let
'';
};
unifi-poller = {
nodeName = "unifi_poller";
exporterConfig.enable = true;
exporterConfig.controllers = [ { } ];
exporterTest = ''
wait_for_unit("prometheus-unifi-poller-exporter.service")
wait_for_open_port(9130)
succeed(
"curl -sSf localhost:9130/metrics | grep -q 'unifipoller_build_info{.\\+} 1'"
)
'';
};
varnish = {
exporterConfig = {
enable = true;