24 lines
635 B
Nix
24 lines
635 B
Nix
{ config, ... }: {
|
|
services.prometheus = {
|
|
enable = true;
|
|
port = 9001;
|
|
scrapeConfigs = [
|
|
{
|
|
job_name = "node_exporter";
|
|
static_configs = [{
|
|
targets = [
|
|
"${config.services.prometheus.exporters.node.listenAddress}:${toString config.services.prometheus.exporters.node.port}"
|
|
];
|
|
}];
|
|
}
|
|
{
|
|
job_name = "bind_exporter";
|
|
static_configs = [{
|
|
targets = [
|
|
"${config.services.prometheus.exporters.bind.listenAddress}:${toString config.services.prometheus.exporters.bind.port}"
|
|
];
|
|
}];
|
|
}
|
|
];
|
|
};
|
|
}
|