about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/monitoring/promtail.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/services/monitoring/promtail.nix b/modules/services/monitoring/promtail.nix
index 5fec760..85d34dc 100644
--- a/modules/services/monitoring/promtail.nix
+++ b/modules/services/monitoring/promtail.nix
@@ -20,7 +20,7 @@ in
               path = "/var/log/journal";
               max_age = "12h";
               labels = {
-                host = "carmel";
+                host = config.networking.hostName;
                 job = "journal";
                 "__path__" = "/var/log/journal";
               };
@@ -46,7 +46,7 @@ in
             job_name = "nginx";
             static_configs = [{
               labels = {
-                host = "carmel";
+                host = config.networking.hostName;
                 job = "nginx";
                 __path__ = "/var/log/nginx/*";
               };