about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-23 14:36:45 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-23 14:37:18 -0700
commitce736f3e722dfbf18d1944a4a86a6d9074c6b278 (patch)
tree51267fadd1ee302d26114bab97468d1ab43ad6a9 /modules
parenthosts/tahoe: loki and prometheus listen only on the wg0 interface (diff)
downloadworld-ce736f3e722dfbf18d1944a4a86a6d9074c6b278.tar.gz
modules/monitoring: set the host's name as a label for promtail
Diffstat (limited to 'modules')
-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/*";
               };