diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 01:28:32 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-07 01:28:32 +0100 |
commit | aedcbd38a76238aafa43224cbd6ded1e75e1c709 (patch) | |
tree | 8874d1ee4cf53a7865e3d97da55cf1174a77613c /hosts/vidhar | |
parent | 9d87de840d1adf27cab8324f330a6e8f52523e23 (diff) | |
download | nixos-aedcbd38a76238aafa43224cbd6ded1e75e1c709.tar nixos-aedcbd38a76238aafa43224cbd6ded1e75e1c709.tar.gz nixos-aedcbd38a76238aafa43224cbd6ded1e75e1c709.tar.bz2 nixos-aedcbd38a76238aafa43224cbd6ded1e75e1c709.tar.xz nixos-aedcbd38a76238aafa43224cbd6ded1e75e1c709.zip |
...
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/default.nix | 2 | ||||
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 4 |
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; |