pvv-nixos-config/hosts/ildkule/services/metrics/prometheus.nix

24 lines
451 B
Nix
Raw Normal View History

2022-12-19 22:56:42 +01:00
{ config, pkgs, ... }:
{
services.prometheus = {
enable = true;
port = 9001;
scrapeConfigs = [
{
job_name = "node";
static_configs = [
{
targets = [
"ildkule.pvv.ntnu.no:${toString config.services.prometheus.exporters.node.port}"
"microbel.pvv.ntnu.no:9100"
"knakelibrak.pvv.ntnu.no:9100"
];
}
];
}
];
};
}