2023-06-11 02:08:06 -04:00
|
|
|
_: {
|
2023-06-06 00:08:22 -04:00
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "prometheus";
|
|
|
|
scrape_interval = "30s";
|
2023-06-19 09:23:56 -04:00
|
|
|
static_configs = [{targets = ["localhost:9090"];}];
|
2023-06-06 00:08:22 -04:00
|
|
|
}
|
|
|
|
{
|
|
|
|
job_name = "node";
|
|
|
|
scrape_interval = "30s";
|
2023-06-19 09:23:56 -04:00
|
|
|
static_configs = [{targets = ["localhost:9100"];}];
|
2023-06-06 00:08:22 -04:00
|
|
|
}
|
|
|
|
];
|
|
|
|
exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = ["systemd" "cpu"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|