summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-06 13:44:46 +0200
committerRory& <root@rory.gay>2024-06-05 17:25:16 +0200
commita2a82dc09d8fb182b6618ee0e9ede189b0aa4411 (patch)
treefa87e2b3d056ab80b57a4e738d89e5415ac556d5 /host
parentFix secret path, use calendar time (diff)
downloadSpacebar-Open-Infrastructure-a2a82dc09d8fb182b6618ee0e9ede189b0aa4411.tar.xz
Fix prometheus?
Diffstat (limited to 'host')
-rwxr-xr-xhost/Spacebar-monitoring/configuration.nix15
1 files changed, 4 insertions, 11 deletions
diff --git a/host/Spacebar-monitoring/configuration.nix b/host/Spacebar-monitoring/configuration.nix
index 4ecb682..836eda2 100755
--- a/host/Spacebar-monitoring/configuration.nix
+++ b/host/Spacebar-monitoring/configuration.nix
@@ -23,14 +23,8 @@
             enable = true;
             stateDir = "prometheus";
             extraFlags = [
-                "--storage.local.retention 8760h"
-                "--storage.local.series-file-shrink-ratio 0.3"
-                "--storage.local.memory-chunks 2097152"
-                "--storage.local.max-chunks-to-persist 1048576"
-                "--storage.local.index-cache-size.fingerprint-to-metric 2097152"
-                "--storage.local.index-cache-size.fingerprint-to-timerange 1048576"
-                "--storage.local.index-cache-size.label-name-to-label-values 2097152"
-                "--storage.local.index-cache-size.label-pair-to-fingerprints 41943040"
+                "--storage.tsdb.retention.time=1y"
+                "--storage.tsdb.path=/var/lib/prometheus/"
             ];
             # alertmanagerURL = [ "http://localhost:9093" ];
             # rules = [
@@ -212,14 +206,13 @@
         };
         grafana = {
             enable = true;
-            addr = "0.0.0.0";
-            domain = "grafana.spacebar.chat";
             settings = {
                 server = {
                     root_url = "https://grafana.spacebar.chat/";
                     enable_gzip = true;
                     domain = "grafana.spacebar.chat";
-
+                    http_addr = "0.0.0.0";
+                    domain = "grafana.spacebar.chat";
                 };
                 analytics.reporting_enabled = false;
                 security.secret_key = secrets.secret_keys.grafana;