From db37e1edb9179069815af651bd32f576be8ebdd3 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 8 Apr 2022 23:28:34 +0200 Subject: surtr: ... --- hosts/surtr/prometheus/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hosts/surtr/prometheus') diff --git a/hosts/surtr/prometheus/default.nix b/hosts/surtr/prometheus/default.nix index 3fdfc2aa..4f6ea44d 100644 --- a/hosts/surtr/prometheus/default.nix +++ b/hosts/surtr/prometheus/default.nix @@ -24,8 +24,10 @@ in { globalConfig = { evaluation_interval = "1s"; + }; - remote_write = { + remoteWrite = [ + { url = "https://prometheus.vidhar.yggdrasil/api/v1/write"; name = "vidhar"; tls_config = { @@ -33,8 +35,8 @@ in { cert_file = ./tls.crt; key_file = "/run/credentials/prometheus.service/tls.key"; }; - }; - }; + } + ]; scrapeConfigs = [ { job_name = "prometheus"; -- cgit v1.2.3