Closed Tasty213 closed 2 months ago
That is a new feature that will go out in v1.32.0. It was landed in this PR: https://github.com/influxdata/telegraf/pull/15458
You can run a nightly build until then: https://github.com/influxdata/telegraf/blob/master/docs/NIGHTLIES.md
Thanks for the clarification looking forward to 1.32!
Relevant telegraf.conf
Logs from Telegraf
System info
Podman 5.1.2
Docker
FROM docker.io/library/telegraf:1.31.3
ADD ./telegraf.conf /etc/telegraf/telegraf.conf
Steps to reproduce
Build the above container using podman build
podman build -f ./Containerfile --env=INFLUX_TOKEN=insert_token_here
run it
podman run --cap-add cap_net_raw --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --mount=type=bind,src=/run/user/1000,dst=/run/user/1000 --mount=type=bind,src=/run/user/1000/bus,ro=true,dst=/run/user/1000/bus --mount=type=bind,src=/var/run/dbus/system_bus_socket,ro=true,dst=/var/run/dbus/system_bus_socket {insert hash from build}
Expected behavior
Telegraf monitors systemd units in the scope of the user who ran the container.
Actual behavior
Telegraf errors claiming it can't accept the scope value despite this being shown in the documentation.
Additional info
No response