From 953f00bdc76b11d4a4c5024d52c9081062498357 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Thu, 30 Mar 2023 20:15:53 +0000 Subject: [PATCH] ADD PVE prometheus --- hosts/sup/configuration.nix | 1 + modules/grafana.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/hosts/sup/configuration.nix b/hosts/sup/configuration.nix index a059839..20e991a 100644 --- a/hosts/sup/configuration.nix +++ b/hosts/sup/configuration.nix @@ -4,6 +4,7 @@ ./firewall-services.nix ../modules/users.nix ../modules/common.nix + ../modules/smtp.nix ../modules/grafana.nix ]; diff --git a/modules/grafana.nix b/modules/grafana.nix index 01216c1..766c589 100644 --- a/modules/grafana.nix +++ b/modules/grafana.nix @@ -38,6 +38,13 @@ targets = [ "37.187.103.8:${toString config.services.prometheus.exporters.node.port}" ]; }]; } + { + job_name = "pve-exporter"; + static_configs = [{ + targets = [ "192.168.10.112:9221" ]; + }]; + metrics_path = "/pve" ; + } { job_name = "backup"; static_configs = [{