nixos/prometheus/systemd: Implement the extraFlags config option.

This commit is contained in:
Amanda Cameron 2021-11-19 13:09:56 -05:00
parent 41aaf69b7d
commit 4bfe837a58

View file

@ -11,7 +11,7 @@ in {
serviceConfig = {
ExecStart = ''
${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port}
--web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags}
'';
RestrictAddressFamilies = [
# Need AF_UNIX to collect data