infra/nixos/hosts/silver/services/prometheus.nix

32 lines
550 B
Nix
Raw Normal View History

2024-12-14 18:24:51 -06:00
{...}: let
ipSilver = "10.13.0.1"; # TODO: hardcoding
ipEidola = "10.13.1.1"; # TODO: hardcoding
in {
services.prometheus = {
enable = true;
2024-12-15 18:28:15 -06:00
globalConfig = {
scrape_interval = "20s";
};
2024-12-14 18:24:51 -06:00
scrapeConfigs = [
{
job_name = "silver";
static_configs = [
{
targets = ["${ipSilver}:9100"];
}
];
}
{
job_name = "eidola";
static_configs = [
{
targets = ["${ipEidola}:9100"];
}
];
}
];
};
}