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:
parent
cacf9fb68f
commit
2e84c66b8d
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
})
|
||||
];
|
||||
|
|
|
@ -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 [
|
||||
|
|
Loading…
Reference in a new issue