23 lines
427 B
Nix
23 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"
|
|
];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|