From 5563ce5a054acc065229273af406504e9d765075 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru> Date: Fri, 31 Jan 2025 23:01:35 +0300 Subject: [PATCH] host/tatos: add nginx exporters to the prometheus --- hosts/tatos/services/prometheus.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/tatos/services/prometheus.nix b/hosts/tatos/services/prometheus.nix index 2771f0c..260a921 100644 --- a/hosts/tatos/services/prometheus.nix +++ b/hosts/tatos/services/prometheus.nix @@ -2,6 +2,7 @@ let nodeExporterPort = 40000; + nginxExporterPort = 40001; in { services.prometheus.exporters.node = { @@ -45,6 +46,17 @@ in } ]; } + { + job_name = "nginx_production"; + static_configs = [ + { + targets = [ + "canigou:${toString nginxExporterPort}" + "magenta:${toString nginxExporterPort}" + ]; + } + ]; + } ]; }; }