host/tatos: add nginx exporters to the prometheus
This commit is contained in:
parent
3202912f05
commit
5563ce5a05
1 changed files with 12 additions and 0 deletions
|
@ -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}"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue