prometheus-systemd-exporter: Init at 0.4.0

This commit is contained in:
Chuck
2021-02-16 23:08:45 -08:00
parent ff96a0fa56
commit 83de9e2d12
5 changed files with 59 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ let
"smokeping"
"sql"
"surfboard"
"systemd"
"tor"
"unifi"
"unifi-poller"

View File

@@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }:
with lib;
let cfg = config.services.prometheus.exporters.systemd;
in {
port = 9558;
serviceOpts = {
serviceConfig = {
ExecStart = ''
${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \
--web.listen-address ${cfg.listenAddress}:${toString cfg.port}
'';
};
};
}