summaryrefslogtreecommitdiff
path: root/hosts/surtr/prometheus
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-08 23:28:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-08 23:28:34 +0200
commitdb37e1edb9179069815af651bd32f576be8ebdd3 (patch)
treebca2a7ec384d02213de90e563ea29ea41e91929d /hosts/surtr/prometheus
parente3673b5cf89685aa1d0f220871b7ac3910cf9783 (diff)
downloadnixos-db37e1edb9179069815af651bd32f576be8ebdd3.tar
nixos-db37e1edb9179069815af651bd32f576be8ebdd3.tar.gz
nixos-db37e1edb9179069815af651bd32f576be8ebdd3.tar.bz2
nixos-db37e1edb9179069815af651bd32f576be8ebdd3.tar.xz
nixos-db37e1edb9179069815af651bd32f576be8ebdd3.zip
surtr: ...
Diffstat (limited to 'hosts/surtr/prometheus')
-rw-r--r--hosts/surtr/prometheus/default.nix8
1 files changed, 5 insertions, 3 deletions
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 {
24 24
25 globalConfig = { 25 globalConfig = {
26 evaluation_interval = "1s"; 26 evaluation_interval = "1s";
27 };
27 28
28 remote_write = { 29 remoteWrite = [
30 {
29 url = "https://prometheus.vidhar.yggdrasil/api/v1/write"; 31 url = "https://prometheus.vidhar.yggdrasil/api/v1/write";
30 name = "vidhar"; 32 name = "vidhar";
31 tls_config = { 33 tls_config = {
@@ -33,8 +35,8 @@ in {
33 cert_file = ./tls.crt; 35 cert_file = ./tls.crt;
34 key_file = "/run/credentials/prometheus.service/tls.key"; 36 key_file = "/run/credentials/prometheus.service/tls.key";
35 }; 37 };
36 }; 38 }
37 }; 39 ];
38 40
39 scrapeConfigs = [ 41 scrapeConfigs = [
40 { job_name = "prometheus"; 42 { job_name = "prometheus";