enable wireguard exporter

This commit is contained in:
Hendrik Sokolowski 2023-10-29 00:44:26 +02:00
parent de4a265164
commit 20dc6360b8
2 changed files with 25 additions and 10 deletions

View file

@ -24,6 +24,11 @@ in {
openFirewall = true;
listenAddress = cfg.listenAddress;
};
wireguard = {
enable = true;
openFirewall = true;
listenAddress = cfg.listenAddress;
};
};
};
}

View file

@ -68,16 +68,6 @@ in {
listenAddress = cfg.listenAddress;
port = 9001;
scrapeConfigs = [
{
job_name = "node_exporters";
static_configs = [
{
targets =
["${cfg.listenAddress}:9002"]
++ cfg.node_exporter.hosts;
}
];
}
{
job_name = "snmp_wohnung_aachen_mikrotik";
scrape_interval = "15s";
@ -106,6 +96,26 @@ in {
}
];
}
{
job_name = "node_exporters";
static_configs = [
{
targets =
["${cfg.listenAddress}:9002"]
++ cfg.node_exporter.hosts;
}
];
}
{
job_name = "wireguard";
static_configs = [
{
targets =
["${cfg.listenAddress}:9586"]
++ cfg.node_exporter.hosts;
}
];
}
{
job_name = "smokeping";
scrape_interval = "15s";