1
0
Fork 0

add scraping of prometheus' own metrics

This commit is contained in:
ibizaman 2023-08-25 09:41:54 -07:00
parent 4116aafcee
commit be24e241d7

View file

@ -105,6 +105,14 @@ in
}
];
}
{
job_name = "prometheus_internal";
static_configs = [
{
targets = ["127.0.0.1:${toString config.services.prometheus.port}"];
}
];
}
] ++ (lib.lists.optional config.services.nginx.enable {
job_name = "nginx";
static_configs = [