25 lines
484 B
Nix
25 lines
484 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.prometheus = {
|
|
enable = true;
|
|
listenAddress = "127.0.0.1";
|
|
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"
|
|
];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
}
|