From f10610c794902d4c9203521402e40571e3f905f2 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 24 Feb 2023 02:12:12 +0100 Subject: [PATCH] add prometheus labels --- nixos/machines/pepe/prometheus.nix | 4 ++++ nixos/machines/robi/prometheus.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/nixos/machines/pepe/prometheus.nix b/nixos/machines/pepe/prometheus.nix index 9202fd1..aeb572c 100644 --- a/nixos/machines/pepe/prometheus.nix +++ b/nixos/machines/pepe/prometheus.nix @@ -50,6 +50,10 @@ job_name = "systemd"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; + labels = { + service = "node-exporter"; + server = "pepe"; + }; }]; } { diff --git a/nixos/machines/robi/prometheus.nix b/nixos/machines/robi/prometheus.nix index 11da3a3..1d14ee4 100644 --- a/nixos/machines/robi/prometheus.nix +++ b/nixos/machines/robi/prometheus.nix @@ -47,6 +47,10 @@ job_name = "systemd"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; + labels = { + service = "node-exporter"; + server = "pepe"; + }; }]; } ];