diff --git a/nix/modules/nixos/infrastructure/vault-prometheus-sender/prometheus.alloy b/nix/modules/nixos/infrastructure/vault-prometheus-sender/prometheus.alloy index 0513a68..e1c94b6 100644 --- a/nix/modules/nixos/infrastructure/vault-prometheus-sender/prometheus.alloy +++ b/nix/modules/nixos/infrastructure/vault-prometheus-sender/prometheus.alloy @@ -19,7 +19,7 @@ discovery.relabel "integrations_node_exporter" { prometheus.exporter.unix "integrations_node_exporter" { // Disable unnecessary collectors to reduce overhead disable_collectors = ["ipvs", "btrfs", "infiniband", "xfs", "zfs"] - enable_collectors = ["meminfo"] + enable_collectors = ["meminfo","systemd"] filesystem { // Exclude filesystem types that aren't relevant for monitoring @@ -40,7 +40,12 @@ prometheus.exporter.unix "integrations_node_exporter" { device_exclude = "^(veth.*|cali.*|[a-f0-9]{15})$" } - + systemd { + enable_restarts = true + start_time = true + task_metrics = true + unit_include = ".+" + } } // Define how to scrape metrics from the node_exporter diff --git a/nix/profiles/nixos/khs-base.nix b/nix/profiles/nixos/khs-base.nix index ade4c17..16aef13 100644 --- a/nix/profiles/nixos/khs-base.nix +++ b/nix/profiles/nixos/khs-base.nix @@ -9,6 +9,7 @@ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCqY0FHnWFKfLG2yfgr4qka5sR9CK+EMAhzlHUkaQyWHTKD+G0/vC/fNPyL1VV3Dxc/ajxGuPzVE+mBMoyxazL3EtuCDOVvHJ5CR+MUSEckg/DDwcGHqy6rC8BvVVpTAVL04ByQdwFnpE1qNSBaQLkxaFVdtriGKkgMkc7+UNeYX/bv7yn+APqfP1a3xr6wdkSSdO8x4N2jsSygOIMx10hLyCV4Ueu7Kp8Ww4rGY8j5o7lKJhbgfItBfSOuQHdppHVF/GKYRhdnK6Y2fZVYbhq4KipUtclbZ6O/VYd8/sOO98+LMm7cOX+K35PQjUpYgcoNy5+Sw3CNS/NHn4JvOtTaUEYP7fK6c9LhMULOO3T7Cm6TMdiFjUKHkyG+s2Mu/LXJJoilw571zwuh6chkeitW8+Ht7k0aPV96kNEvTdoXwLhBifVEaChlAsLAzSUjUq+YYCiXVk0VIXCZQWKj8LoVNTmaqDksWwbcT64fw/FpVC0N18WHbKcFUEIW/O4spJMa30CQwf9FeqpoWoaF1oRClCSDPvX0AauCu0JcmRinz1/JmlXljnXWbSfm20/V+WyvktlI0wTD0cdpNuSasT9vS77YfJ8nutcWWZKSkCj4R4uHeCNpDTX5YXzapy7FxpM9ANCXLIvoGX7Yafba2Po+er7SSsUIY1AsnBBr8ZoDVw==" ]; }; + time.timeZone = "Europe/Copenhagen"; environment = { systemPackages = [ pkgs.openbao ]; variables = {