1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-15 17:50:54 +00:00

nixos/servnerr-3: enable and scrape apcupsd_exporter on server and router

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-12 18:34:48 -04:00
parent cacf9fb68f
commit 2e84c66b8d
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
2 changed files with 4 additions and 1 deletions

View file

@ -34,6 +34,7 @@ in {
# Overlays for unstable and out-of-tree packages.
nixpkgs.overlays = [
(self: super: {
prometheus-apcupsd-exporter = unstable.prometheus-apcupsd-exporter;
prometheus-keylight-exporter = unstable.prometheus-keylight-exporter;
})
];

View file

@ -76,6 +76,8 @@ in {
exporters = {
# Node exporter already enabled on all machines.
apcupsd.enable = true;
blackbox = {
enable = true;
configFile = pkgs.writeText "blackbox.yml" (builtins.toJSON ({
@ -110,7 +112,7 @@ in {
# TODO: template out hostnames or consider DNSSD.
scrapeConfigs = [
# Simple, static scrape jobs.
(staticScrape "apcupsd" [ "nerr-3:9162" ])
(staticScrape "apcupsd" [ "nerr-3:9162" "routnerr-2:9162" "servnerr-3:9162" ])
(staticScrape "coredns" [ "routnerr-2:9153" ])
(staticScrape "corerad" [ "routnerr-2:9430" ])
(lib.mkMerge [