From 7a216c49486e5a124b6951a3902d40ec7228ead0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 27 Feb 2022 19:03:45 -0800 Subject: server: create a new profile This is a profile for servers related stuff. We start with monitoring for now. --- hosts/common/server/monitoring.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hosts/common/server/monitoring.nix (limited to 'hosts/common/server/monitoring.nix') diff --git a/hosts/common/server/monitoring.nix b/hosts/common/server/monitoring.nix new file mode 100644 index 0000000..a893721 --- /dev/null +++ b/hosts/common/server/monitoring.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: + +{ + services.prometheus = { + exporters = { + node = { + enable = true; + enabledCollectors = [ "systemd" ]; + }; + }; + }; +} -- cgit v1.2.3