2022-01-15 09:57:49 +00:00
|
|
|
{ config, ... }: {
|
2022-01-14 20:58:33 +00:00
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
port = 9001;
|
2022-01-15 09:57:49 +00:00
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "node_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"${config.services.prometheus.exporters.node.listenAddress}:${toString config.services.prometheus.exporters.node.port}"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-15 13:44:34 +00:00
|
|
|
{
|
|
|
|
job_name = "bind_exporter";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [
|
|
|
|
"${config.services.prometheus.exporters.bind.listenAddress}:${toString config.services.prometheus.exporters.bind.port}"
|
|
|
|
];
|
|
|
|
}];
|
|
|
|
}
|
2022-01-15 09:57:49 +00:00
|
|
|
];
|
2022-01-14 20:58:33 +00:00
|
|
|
};
|
|
|
|
}
|