defiant/metrics: Remove zfs exporter, fix snmp exporter

This commit is contained in:
2023-12-26 15:46:41 +01:00
committed by Felix Albrigtsen
parent 773c961d55
commit 36613beb67
4 changed files with 3 additions and 25 deletions

View File

@@ -5,6 +5,6 @@
./prometheus.nix
./grafana.nix
./loki.nix
#./snmp-exporter.nix
./snmp-exporter.nix
];
}

View File

@@ -59,15 +59,6 @@ in {
}
];
}
{
job_name = "zfs";
static_configs = [
{ targets = [
"voyager.home.feal.no:9134"
"defiant.home.feal.no:9134"
]; }
];
}
];
};
}

View File

@@ -12,8 +12,8 @@
Type = "simple";
};
serviceConfig = {
ExecStart = "${pkgs.prometheus-snmp-exporter}/bin/snmp_exporter --config.file='/var/prometheus/snmp.yml'";
# TODO: Fix this conf file!
ExecStart = "${pkgs.prometheus-snmp-exporter}/bin/snmp_exporter --config.file='/tank/services/metrics/prometheus/snmp.yml'";
# snmp.yml = https://github.com/prometheus/snmp_exporter/blob/main/snmp.yml + https://global.download.synology.com/download/Document/Software/DeveloperGuide/Firmware/DSM/All/enu/Synology_DiskStation_MIB_Guide.pdf
};
wantedBy = [ "multi-user.target" ];
};