1 { config, pkgs, lib, ... }:
4 cfg = config.services.prometheus.exporters.systemd;
5 inherit (lib) concatStringsSep;
12 ${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \
13 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags}
15 RestrictAddressFamilies = [
16 # Need AF_UNIX to collect data