h7x4
45497aea2b
- Set up a bunch of exporters - Download matching dashboard declarations - Remove influxdb
19 lines
321 B
Nix
19 lines
321 B
Nix
{ ... }:
|
|
{
|
|
services.prometheus = {
|
|
scrapeConfigs = [{
|
|
job_name = "node";
|
|
scrape_interval = "15s";
|
|
static_configs = [{
|
|
targets = [ "localhost:10393" ];
|
|
}];
|
|
}];
|
|
|
|
exporters.node = {
|
|
enable = true;
|
|
port = 10393;
|
|
enabledCollectors = [ "systemd" ];
|
|
};
|
|
};
|
|
}
|