promtail: use hostName to set label

This commit is contained in:
teutat3s 2024-06-06 19:29:42 +02:00
parent 3b865a688c
commit bae41b07a8
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -28,7 +28,7 @@
max_age = "24h"; max_age = "24h";
labels = { labels = {
job = "systemd-journal"; job = "systemd-journal";
host = "nachtigall"; host = config.networking.hostName;
}; };
}; };
relabel_configs = [ relabel_configs = [