24 lines
427 B
Nix
24 lines
427 B
Nix
|
{ pkgs, lib, config, ... }:
|
||
|
{
|
||
|
networking.firewall.allowedTCPPorts = [ 9090 # prometheus ];
|
||
|
|
||
|
services = {
|
||
|
prometheus = {
|
||
|
enable = true;
|
||
|
scrapeConfigs = [
|
||
|
{
|
||
|
job_name = "node";
|
||
|
scrape_interval = "10s";
|
||
|
static_configs = [
|
||
|
{
|
||
|
targets = [
|
||
|
"localhost:9100"
|
||
|
];
|
||
|
}
|
||
|
];
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|