aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/alloy/templates/config.alloy.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/alloy/templates/config.alloy.j2 b/ansible/roles/alloy/templates/config.alloy.j2
index aecf34c..805d167 100644
--- a/ansible/roles/alloy/templates/config.alloy.j2
+++ b/ansible/roles/alloy/templates/config.alloy.j2
@@ -35,7 +35,7 @@ loki.process "ansible_{{ extra.name }}" {
loki.write "pydis_gateway" {
external_labels = {
- hostname = env("HOSTNAME"),
+ hostname = "{{ inventory_hostname }}",
}
endpoint {
url = "{{ alloy_loki_endpoint }}/loki/api/v1/push"