hackens-org-configurations/hosts/hackens-org/prometheus/default.nix
2022-04-24 12:22:16 +02:00

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"
];
}
];
}
];
};
};
}