summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-08-16 04:33:56 +0200
committerRory& <root@rory.gay>2024-08-16 04:33:56 +0200
commit312cec24b5266fd6da6cff5a9d313300ad71be38 (patch)
tree5d9f78bb33565da4772af77d5f3769ce48574250
parentEnable waydroid on desktop (diff)
downloadRory-Open-Architecture-312cec24b5266fd6da6cff5a9d313300ad71be38.tar.xz
Enable postgres prometheus exporter
-rwxr-xr-xhost/Rory-nginx/services/postgres.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/postgres.nix b/host/Rory-nginx/services/postgres.nix
index 68b822b..38a8ef8 100755
--- a/host/Rory-nginx/services/postgres.nix
+++ b/host/Rory-nginx/services/postgres.nix
@@ -80,4 +80,20 @@
     };
   };
 
+  services.prometheus.exporters.postgres = {
+    enable = true;
+    port = 9187;
+    extraFlags = [
+      "--collector.database_wraparound"
+      "--collector.long_running_transactions"
+      "--collector.postmaster"
+      "--collector.process_idle"
+      "--collector.stat_activity_autovacuum"
+      "--collector.stat_statements"
+      #"--collector.stat_wal_receiver" #we dont have WAL receivers
+      "--collector.statio_user_indexes"
+      "--collector.xlog_location"
+    ];
+  };
+
 }