mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +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.
|
# Overlays for unstable and out-of-tree packages.
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
|
prometheus-apcupsd-exporter = unstable.prometheus-apcupsd-exporter;
|
||||||
prometheus-keylight-exporter = unstable.prometheus-keylight-exporter;
|
prometheus-keylight-exporter = unstable.prometheus-keylight-exporter;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -76,6 +76,8 @@ in {
|
||||||
exporters = {
|
exporters = {
|
||||||
# Node exporter already enabled on all machines.
|
# Node exporter already enabled on all machines.
|
||||||
|
|
||||||
|
apcupsd.enable = true;
|
||||||
|
|
||||||
blackbox = {
|
blackbox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = pkgs.writeText "blackbox.yml" (builtins.toJSON ({
|
configFile = pkgs.writeText "blackbox.yml" (builtins.toJSON ({
|
||||||
|
@ -110,7 +112,7 @@ in {
|
||||||
# TODO: template out hostnames or consider DNSSD.
|
# TODO: template out hostnames or consider DNSSD.
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
# Simple, static scrape jobs.
|
# 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 "coredns" [ "routnerr-2:9153" ])
|
||||||
(staticScrape "corerad" [ "routnerr-2:9430" ])
|
(staticScrape "corerad" [ "routnerr-2:9430" ])
|
||||||
(lib.mkMerge [
|
(lib.mkMerge [
|
||||||
|
|
Loading…
Reference in a new issue