summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/vidhar/default.nix2
-rw-r--r--hosts/vidhar/prometheus/default.nix4
2 files changed, 6 insertions, 0 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 2b0916d7..92e15d17 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -179,10 +179,12 @@
179 }; 179 };
180 }; 180 };
181 ruler = { 181 ruler = {
182 enable_api = true;
182 storage = { 183 storage = {
183 type = "local"; 184 type = "local";
184 local.directory = "/etc/loki/rules"; 185 local.directory = "/etc/loki/rules";
185 }; 186 };
187 rule_path = "${config.services.loki.dataDir}/rules_scratch";
186 remote_write = { 188 remote_write = {
187 enabled = true; 189 enabled = true;
188 client.url = "http://localhost:9090/api/v1/write"; 190 client.url = "http://localhost:9090/api/v1/write";
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index af8ad5a0..e305ff84 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -20,6 +20,10 @@ in {
20 services.prometheus = { 20 services.prometheus = {
21 enable = true; 21 enable = true;
22 22
23 extraFlags = [
24 "--enable-feature=remote-write-receiver"
25 ];
26
23 exporters = { 27 exporters = {
24 node = { 28 node = {
25 enable = true; 29 enable = true;