From fbc5fead776bbd411456b1286cd3b3eb91c16b8a Mon Sep 17 00:00:00 2001 From: noe Date: Sun, 11 Feb 2024 04:21:17 -0500 Subject: [PATCH] monitoring --- nixos/hosts/monitoring/default.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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"]; + }; + } ]; };