hackens-org-configurations/hosts/hackens-org/prometheus/default.nix

24 lines
427 B
Nix
Raw Normal View History

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