From 18d29bc8d6e04052a7166fd43f426022948eee97 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 21 Jul 2024 19:19:02 +0530 Subject: [PATCH] rico0: add dns for promtail --- hosts/rico0/services/apps/blocky.nix | 5 +++++ hosts/shared/promtail.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/rico0/services/apps/blocky.nix b/hosts/rico0/services/apps/blocky.nix index e1f5c3c..9ac0bf6 100644 --- a/hosts/rico0/services/apps/blocky.nix +++ b/hosts/rico0/services/apps/blocky.nix @@ -63,6 +63,11 @@ _: { "grafana.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "loki.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; "prometheus.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; + "promtail.rico0.labs.adtya.xyz" = "10.10.10.10,fd7c:585c:c4ae::10"; + "promtail.rico1.labs.adtya.xyz" = "10.10.10.11,fd7c:585c:c4ae::11"; + "promtail.rico2.labs.adtya.xyz" = "10.10.10.12,fd7c:585c:c4ae::12"; + "promtail.wynne.labs.adtya.xyz" = "10.10.10.13,fd7c:585c:c4ae::13"; + "promtail.layne.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14"; "transmission.labs.adtya.xyz" = "10.10.10.14,fd7c:585c:c4ae::14"; }; }; diff --git a/hosts/shared/promtail.nix b/hosts/shared/promtail.nix index d76714e..9ee374d 100644 --- a/hosts/shared/promtail.nix +++ b/hosts/shared/promtail.nix @@ -32,7 +32,7 @@ matches = "_TRANSPORT=kernel"; labels = { job = "systemd-journal"; host = "${config.networking.hostName}"; }; }; - relabel_config = [ + relabel_configs = [ { source_labels = [ "__journal__systemd_unit" ]; target_label = "unit";