summaryrefslogtreecommitdiff
path: root/modules/xnet/monitoring/default.nix
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-10-24 22:52:35 -0700
committerKleidi Bujari <mail@4kb.net>2026-10-24 22:59:09 -0700
commit48c8a4145c5a73874797a6de3f05ce584b1d1798 (patch)
treebd4c627e8c8944fb7082b7a9982e8d3677c2a2c4 /modules/xnet/monitoring/default.nix
parent1a181be93f37a94b347b2f5f97a1fef57e11cf89 (diff)
parent27db59cac4f3c3e7a1e4187a5f56d4ec61895c5a (diff)
downloaddepot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.gz
depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.tar.bz2
depot-48c8a4145c5a73874797a6de3f05ce584b1d1798.zip
merge hakyllHEADmaster
Diffstat (limited to 'modules/xnet/monitoring/default.nix')
-rw-r--r--modules/xnet/monitoring/default.nix37
1 files changed, 24 insertions, 13 deletions
diff --git a/modules/xnet/monitoring/default.nix b/modules/xnet/monitoring/default.nix
index eed4963..20566d3 100644
--- a/modules/xnet/monitoring/default.nix
+++ b/modules/xnet/monitoring/default.nix
@@ -9,7 +9,6 @@ in
{
imports = [ ./grafana.nix ];
-
config = {
services.prometheus = {
enable = config.xnet.monitoring.hostGrafana;
@@ -19,7 +18,10 @@ in
node = {
enable = true;
openFirewall = true;
- enabledCollectors = [ "processes" "systemd" ];
+ enabledCollectors = [
+ "processes"
+ "systemd"
+ ];
};
# systemd = {
@@ -39,20 +41,29 @@ in
scrapeConfigs =
let
- hosts = [ "iridium" "radon" ];
+ hosts = [
+ "iridium"
+ "radon"
+ ];
in
- [{
- job_name = "node";
- static_configs = [{
- targets = map (h: "${h}:${toString exporters.node.port}") hosts;
- }];
- }
+ [
+ {
+ job_name = "node";
+ static_configs = [
+ {
+ targets = map (h: "${h}:${toString exporters.node.port}") hosts;
+ }
+ ];
+ }
{
job_name = "smartctl";
- static_configs = [{
- targets = map (h: "${h}:${toString exporters.smartctl.port}") hosts;
- }];
- }];
+ static_configs = [
+ {
+ targets = map (h: "${h}:${toString exporters.smartctl.port}") hosts;
+ }
+ ];
+ }
+ ];
};
};
}