add scraping of prometheus' own metrics
This commit is contained in:
parent
4116aafcee
commit
be24e241d7
1 changed files with 8 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Reference in a new issue