mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/servnerr-3: monitoring update
This commit is contained in:
parent
beaaa4059b
commit
16b2152fdb
2 changed files with 2 additions and 27 deletions
|
@ -74,27 +74,6 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Deploy CoreRAD monitor mode on all interfaces.
|
|
||||||
corerad = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
# Enable as necessary to get development builds of CoreRAD.
|
|
||||||
# package = unstable.corerad;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
debug = {
|
|
||||||
address = ":9430";
|
|
||||||
prometheus = true;
|
|
||||||
pprof = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
interfaces = [{
|
|
||||||
names = [ "mgmt0" "br0" ];
|
|
||||||
monitor = true;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
grafana = {
|
grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Bind to all interfaces.
|
# Bind to all interfaces.
|
||||||
|
|
|
@ -115,15 +115,14 @@ in {
|
||||||
(staticScrape "apcupsd" [ "nerr-4:9162" "servnerr-4:9162" ])
|
(staticScrape "apcupsd" [ "nerr-4:9162" "servnerr-4:9162" ])
|
||||||
(staticScrape "consrv" [ "monitnerr-1:9288" ])
|
(staticScrape "consrv" [ "monitnerr-1:9288" ])
|
||||||
(staticScrape "coredns" [ "routnerr-3:9153" ])
|
(staticScrape "coredns" [ "routnerr-3:9153" ])
|
||||||
(staticScrape "corerad" [ "routnerr-3:9430" "servnerr-4:9430" ])
|
(staticScrape "corerad" [ "routnerr-3:9430" ])
|
||||||
(staticScrape "node" [
|
(staticScrape "node" [
|
||||||
"monitnerr-1:9100"
|
"monitnerr-1:9100"
|
||||||
"nerr-4:9100"
|
"nerr-4:9100"
|
||||||
"routnerr-3:9100"
|
"routnerr-3:9100"
|
||||||
"servnerr-4:9100"
|
"servnerr-4:9100"
|
||||||
])
|
])
|
||||||
(staticScrape "obs" [ "nerr-4:9407" ])
|
(staticScrape "windows" [ "theatnerr-2.ipv4.lan.servnerr.com:9182" ])
|
||||||
(staticScrape "windows" [ "theatnerr-2:9182" ])
|
|
||||||
(staticScrape "zrepl" [ "servnerr-4:9811" ])
|
(staticScrape "zrepl" [ "servnerr-4:9811" ])
|
||||||
|
|
||||||
# Home Assistant requires a more custom configuration.
|
# Home Assistant requires a more custom configuration.
|
||||||
|
@ -163,9 +162,6 @@ in {
|
||||||
relabel_configs = relabelTarget "servnerr-4:9116";
|
relabel_configs = relabelTarget "servnerr-4:9116";
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
# Lab-only jobs must be prefixed with lab- to avoid alerting.
|
|
||||||
(staticScrape "lab-corerad" [ "routnerr-3:9431" ])
|
|
||||||
];
|
];
|
||||||
|
|
||||||
rules = [ (builtins.toJSON (import ./prometheus-alerts.nix)) ];
|
rules = [ (builtins.toJSON (import ./prometheus-alerts.nix)) ];
|
||||||
|
|
Loading…
Reference in a new issue