host/tatos: add nginx exporters to the prometheus

This commit is contained in:
Dmitriy Pleshevskiy 2025-01-31 23:01:35 +03:00
parent 3202912f05
commit 5563ce5a05
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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}"
];
}
];
}
];
};
}