From 6cff7460f6d708e9ace005f1bebe926c04dcae5f Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 26 May 2023 16:49:33 +0200 Subject: [PATCH] cluster/services/monitoring: configure remote write url --- cluster/services/monitoring/client.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/services/monitoring/client.nix b/cluster/services/monitoring/client.nix index 15aaa87..d27d2dd 100644 --- a/cluster/services/monitoring/client.nix +++ b/cluster/services/monitoring/client.nix @@ -27,6 +27,9 @@ in { services.grafana-agent = { enable = true; settings = { + metrics.global.remote_write = lib.singleton { + url = "${cluster.config.links.prometheus-ingest.url}/api/v1/write"; + }; logs.configs = lib.singleton { name = "logging"; positions.filename = "\${STATE_DIRECTORY:/tmp}/logging-positions.yaml";