about summary refs log tree commit diff
path: root/hosts/tahoe
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-23 13:37:03 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-23 14:29:06 -0700
commit251379d6084849f26866226b4bd0391216a8ccec (patch)
tree448c3517fe994c0dca98f4e9c958ef503bfd7eff /hosts/tahoe
parentmodules/grafana: add loki as a source to grafana (diff)
downloadworld-251379d6084849f26866226b4bd0391216a8ccec.tar.gz
modules/monitoring: consolidate all monitoring services together
This will help to organize and structure monitoring modules a bit
better.
Diffstat (limited to 'hosts/tahoe')
-rw-r--r--hosts/tahoe/services.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix
index 8783e8c..4f3ffdb 100644
--- a/hosts/tahoe/services.nix
+++ b/hosts/tahoe/services.nix
@@ -21,18 +21,21 @@ in
       enable = true;
       vhostName = "unifi.fcuny.xyz";
     };
-    prometheus = { enable = true; };
-    grafana = {
-      enable = true;
-      vhostName = "dash.fcuny.xyz";
-    };
 
-    loki = {
-      enable = true;
-      address = "192.168.6.40";
+    monitoring = {
+      prometheus.enable = true;
+      grafana = {
+        enable = true;
+        vhostName = "dash.fcuny.xyz";
+      };
+      loki = {
+        enable = true;
+        address = "192.168.6.40";
+      };
+      promtail.enable = true;
+      node-exporter.enable = true;
     };
 
-    metrics-exporter.promtail.enable = true;
     cgit = {
       enable = true;
     };
@@ -46,7 +49,6 @@ in
       enable = true;
       vhostName = "bt.fcuny.xyz";
     };
-    metrics-exporter = { enable = true; };
     syncthing.enable = true;
     backup = {
       enable = true;