summaryrefslogtreecommitdiff
path: root/modules/xnet/monitoring/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xnet/monitoring/default.nix')
-rw-r--r--modules/xnet/monitoring/default.nix38
1 files changed, 0 insertions, 38 deletions
diff --git a/modules/xnet/monitoring/default.nix b/modules/xnet/monitoring/default.nix
deleted file mode 100644
index 87ae724..0000000
--- a/modules/xnet/monitoring/default.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{ config, ... }:
-let
- inherit (config.networking) hostName;
- inherit (config.services.prometheus) exporters;
-in
-{
- imports = [ ./grafana.nix ./prometheus.nix ];
-
- exporters = {
- node = {
- enable = true;
- enabledCollectors = [ "processes" "systemd" ];
- };
-
- systemd = {
- enable = true;
- extraFlags = [
- "--systemd.collector.enable-ip-accounting"
- "--systemd.collector.enable-restart-count"
- ];
- };
- };
-
- services.prometheus.scrapeConfigs = [
- {
- job_name = "node";
- static_configs = [{
- targets = [ "${hostName}:${toString exporters.node.port}" ];
- }];
- }
- {
- job_name = "systemd";
- static_configs = [{
- targets = [ "${hostName}:${toString exporters.systemd.port}" ];
- }];
- }
- ];
-}