1
0

Compare commits

..

No commits in common. "2ff4a27d5b382ce4a64b4263159be6f6c82dbae3" and "29f8c7daf416cd4e2eccb8a9a0b1ac022a05f6cb" have entirely different histories.

2 changed files with 5 additions and 31 deletions

View File

@ -21,27 +21,13 @@ with lib;
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; };
environment = {
etc = {
"snmp-exporter/snmp.yml".source = ./snmp.yml;
};
};
services.influxdb2.enable = true;
services.prometheus.exporters = {
blackbox = {
enable = true;
listenAddress = "[::1]";
port = 9115;
configFile = ./blackbox.yml;
};
snmp = {
enable = true;
port= 9116;
listenAddress = "[::1]";
configurationPath = "/etc/snmp-exporter/snmp.yml";
};
services.prometheus.exporters.blackbox = {
enable = true;
listenAddress = "[::1]";
port = 9115;
configFile = ./blackbox.yml;
};
services.prometheus.exporters.node.enable = true;
@ -74,7 +60,6 @@ with lib;
};
services.prometheus = {
enable = true;
retentionTime = "90d";
listenAddress = "[::1]";
scrapeConfigs = [
{
@ -268,17 +253,6 @@ with lib;
}
];
}
{
job_name = "snmp";
scrape_interval = "5m";
static_configs = [
{
targets = [
"[::1]:9116"
];
}
];
}
];
alertmanagers = [
{