From aedcbd38a76238aafa43224cbd6ded1e75e1c709 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 7 Jan 2022 01:28:32 +0100 Subject: ... --- hosts/vidhar/default.nix | 2 ++ hosts/vidhar/prometheus/default.nix | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'hosts') 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 @@ }; }; ruler = { + enable_api = true; storage = { type = "local"; local.directory = "/etc/loki/rules"; }; + rule_path = "${config.services.loki.dataDir}/rules_scratch"; remote_write = { enabled = true; 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 { services.prometheus = { enable = true; + extraFlags = [ + "--enable-feature=remote-write-receiver" + ]; + exporters = { node = { enable = true; -- cgit v1.2.3