diff --git a/nixos/machines/pepe/prometheus.nix b/nixos/machines/pepe/prometheus.nix index aeb572c..ab63b8e 100644 --- a/nixos/machines/pepe/prometheus.nix +++ b/nixos/machines/pepe/prometheus.nix @@ -23,6 +23,7 @@ extraFlags = [ "--storage.tsdb.retention.time=30d" ]; exporters = { + systemd.enable = true; node = { enable = true; enabledCollectors = [ "systemd" ]; @@ -48,6 +49,16 @@ } { job_name = "systemd"; + static_configs = [{ + targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; + labels = { + service = "systemd-exporter"; + server = "pepe"; + }; + }]; + } + { + job_name = "node"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; labels = {