mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
18 lines
343 B
Nix
18 lines
343 B
Nix
{ 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}
|
|
'';
|
|
};
|
|
};
|
|
}
|