Merge pull request #162057 from jdheyburn/jdheyburn-unifi-prometheus-exporter-loki

This commit is contained in:
Franz Pletz 2022-11-11 01:31:41 +01:00 committed by GitHub
commit 286f868a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 (lib.mdDoc "debug logging including line numbers, high resolution timestamps, per-device logs.");
quiet = mkEnableOption (lib.mdDoc "startup and error logs only.");