promtail: use hostName to set label
This commit is contained in:
parent
3b865a688c
commit
bae41b07a8
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue