mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
prometheus.nodeExporter module: improve after feedback
cc @teh @groxxda @fpletz
This commit is contained in:
parent
0ffdb89d95
commit
0201869418
1 changed files with 0 additions and 3 deletions
|
@ -48,13 +48,10 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||
|
||||
systemd.services.prometheus-node-exporter = {
|
||||
description = "Prometheus exporter for machine metrics";
|
||||
unitConfig.Documentation = "https://github.com/prometheus/node_exporter";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
script = ''
|
||||
exec ${pkgs.prometheus-node-exporter}/bin/node_exporter \
|
||||
${optionalString (cfg.enabledCollectors != [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue