about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-06-15 11:55:26 +0900
committersefidel <contact@sefidel.net>2024-06-15 12:04:26 +0900
commit0a359597aa9ed5ea074fd381f1eb784e594efa81 (patch)
treee02f2432408f82d701c980f0065f567f1938c735 /modules/services
parent6abbff704baa8f87625db730fbd45a169936d527 (diff)
downloadinfra-0a359597aa9ed5ea074fd381f1eb784e594efa81.tar.gz
infra-0a359597aa9ed5ea074fd381f1eb784e594efa81.zip
feat(modules/metrics): enable WAL logging on loki
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/metrics.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/services/metrics.nix b/modules/services/metrics.nix
index 68c55b8..764b65f 100644
--- a/modules/services/metrics.nix
+++ b/modules/services/metrics.nix
@@ -53,6 +53,10 @@ in
           max_chunk_age = "1h";
           chunk_target_size = 1048576; # 1.5M
           chunk_retain_period = "30s";
+          wal = {
+            enabled = true;
+            dir = "/tmp/loki-wal";
+          };
         };
 
         schema_config.configs = [