prometheus-exporter/unifi-poller: Add loki config

Allows unifi logs to be sent to Loki via unifi-poller
This commit is contained in:
Joseph Heyburn
2022-02-27 08:36:02 +00:00
committed by GitHub
parent 43f4ad1d72
commit 263c233e51
@@ -13,6 +13,7 @@ let
http_listen = "${cfg.listenAddress}:${toString cfg.port}";
report_errors = cfg.log.prometheusErrors;
};
inherit (cfg) loki;
});
in {
@@ -20,6 +21,7 @@ in {
extraOpts = {
inherit (options.services.unifi-poller.unifi) controllers;
inherit (options.services.unifi-poller) loki;
log = {
debug = mkEnableOption "debug logging including line numbers, high resolution timestamps, per-device logs.";
quiet = mkEnableOption "startup and error logs only.";