prometheus-systemd-exporter: Init at 0.4.0
This commit is contained in:
@@ -51,6 +51,7 @@ let
|
||||
"smokeping"
|
||||
"sql"
|
||||
"surfboard"
|
||||
"systemd"
|
||||
"tor"
|
||||
"unifi"
|
||||
"unifi-poller"
|
||||
|
||||
@@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user