From 83d862a60414b18e03b24c1e5ac198bf4c5bf662 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 May 2023 14:45:17 -0700 Subject: profiles/monitoring: move node exporter to a profile --- modules/services/monitoring/default.nix | 1 - modules/services/monitoring/node-exporter.nix | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 modules/services/monitoring/node-exporter.nix (limited to 'modules/services') diff --git a/modules/services/monitoring/default.nix b/modules/services/monitoring/default.nix index d8c9790..fe1e219 100644 --- a/modules/services/monitoring/default.nix +++ b/modules/services/monitoring/default.nix @@ -6,7 +6,6 @@ in imports = [ ./grafana.nix ./loki.nix - ./node-exporter.nix ./prometheus.nix ./promtail.nix ]; diff --git a/modules/services/monitoring/node-exporter.nix b/modules/services/monitoring/node-exporter.nix deleted file mode 100644 index a205bba..0000000 --- a/modules/services/monitoring/node-exporter.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, pkgs, lib, ... }: -let cfg = config.my.services.monitoring.node-exporter; -in -{ - options.my.services.monitoring.node-exporter = with lib; { - enable = mkEnableOption "Prometheus metrics exporter"; - }; - - config = lib.mkIf cfg.enable { - services.prometheus = { - exporters = { - node = { - enable = true; - enabledCollectors = [ "tcpstat" "systemd" "interrupts" ]; - }; - }; - }; - }; -} -- cgit 1.4.1