This commit is contained in:
parent
3d7d552492
commit
f01c7cbfdf
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
logging {
|
||||||
|
level = "warn"
|
||||||
|
}
|
||||||
prometheus.exporter.unix "local" {
|
prometheus.exporter.unix "local" {
|
||||||
rootfs_path = "/run/host"
|
rootfs_path = "/run/host"
|
||||||
enable_collectors = ["systemd"]
|
enable_collectors = ["systemd"]
|
||||||
|
@ -18,6 +21,7 @@ prometheus.remote_write "writer" {
|
||||||
}
|
}
|
||||||
loki.source.journal "journald" {
|
loki.source.journal "journald" {
|
||||||
path = "/run/host/var/log/journal"
|
path = "/run/host/var/log/journal"
|
||||||
|
labels = {host = constants.hostname}
|
||||||
relabel_rules = loki.relabel.journald.rules
|
relabel_rules = loki.relabel.journald.rules
|
||||||
forward_to = [loki.write.writer.receiver]
|
forward_to = [loki.write.writer.receiver]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ PodmanArgs=--pid=host
|
||||||
UserNS=host
|
UserNS=host
|
||||||
Unmask=ALL
|
Unmask=ALL
|
||||||
Network=host
|
Network=host
|
||||||
|
Exec=run /etc/alloy/config.alloy --storage.path=/var/lib/alloy/data --disable-reporting
|
||||||
Volume=/var/lib/system-config/container-config/alloy/config.alloy:/etc/alloy/config.alloy:z,ro
|
Volume=/var/lib/system-config/container-config/alloy/config.alloy:/etc/alloy/config.alloy:z,ro
|
||||||
Volume=alloy.volume:/var/lib/alloy/data:U,Z
|
Volume=alloy.volume:/var/lib/alloy/data:U,Z
|
||||||
Volume=/:/run/host:ro
|
Volume=/:/run/host:ro
|
||||||
|
|
Loading…
Add table
Reference in a new issue