diff options
author | Franck Cuny <franck@fcuny.net> | 2023-04-23 14:36:45 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-04-23 14:37:18 -0700 |
commit | ce736f3e722dfbf18d1944a4a86a6d9074c6b278 (patch) | |
tree | 51267fadd1ee302d26114bab97468d1ab43ad6a9 /modules/services/monitoring | |
parent | hosts/tahoe: loki and prometheus listen only on the wg0 interface (diff) | |
download | world-ce736f3e722dfbf18d1944a4a86a6d9074c6b278.tar.gz |
modules/monitoring: set the host's name as a label for promtail
Diffstat (limited to '')
-rw-r--r-- | modules/services/monitoring/promtail.nix | 4 |
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/*"; }; |