diff options
author | lassulus <lassulus@lassul.us> | 2018-04-21 17:52:45 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-04-21 17:52:45 +0200 |
commit | c99e8256b223761eb50cf5d6841ab64f989851c3 (patch) | |
tree | 5460c206fe578a5cab4d232a3ae55ba0dff3040b /lass/2configs/monitoring/node-exporter.nix | |
parent | 1501d9e3e6a96e80ed238431ec58b40eb7b1b552 (diff) |
l monitoring: add example prometheus config
Diffstat (limited to 'lass/2configs/monitoring/node-exporter.nix')
-rw-r--r-- | lass/2configs/monitoring/node-exporter.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lass/2configs/monitoring/node-exporter.nix b/lass/2configs/monitoring/node-exporter.nix new file mode 100644 index 000000000..8c27e90d4 --- /dev/null +++ b/lass/2configs/monitoring/node-exporter.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: +{ + networking.firewall.allowedTCPPorts = [ 9100 ]; + + services.prometheus.exporters = { + node = { + enable = true; + enabledCollectors = [ + "systemd" + ]; + }; + }; +} |