diff --git a/nixos/hosts/monitoring/default.nix b/nixos/hosts/monitoring/default.nix index d74712b..429fd48 100644 --- a/nixos/hosts/monitoring/default.nix +++ b/nixos/hosts/monitoring/default.nix @@ -59,11 +59,23 @@ (static "keysmash" [ node ]) (static "ingress-proxy" [ node nginx ]) { - job_name = "pve1"; + job_name = "pve_node"; static_configs = [ - { targets = map (port: "192.168.1.128:${builtins.toString port}") [ node pve ]; } + { targets = map (port: "192.168.1.128:${builtins.toString port}") [ node ]; } ]; } + { + job_name = "pve_pve"; + static_configs = [ + { targets = [ "192.168.1.128:${builtins.toString pve}" ]; } + ]; + metrics_path = "/pve"; + params = { + module = ["default"]; + cluster = ["1"]; + node = ["1"]; + }; + } ]; };