TrueNas Scale 24.10 Telegraf

How is it possible to install telegraf? It is impossible via CLI as I understand

I’d say docker. Look for a project that supplies a docker compose and deploy it via custom app yaml function.

you mean inside dockge/portainer?

or the truenas gui itself, klick on the three dots next to the blue custom app button. there you can directly paste in a compose file and deploy it directly on your truenas box

I tried to deploy via the application, it deployed, then I see in the App tab the application tries to start several times and does not exit. Where can I see its logs? I deployed with this docker compose

services:
telegraf:
image: docker.io/telegraf:latest
container_name: telegraf
restart: always
volumes:
- /home/admin/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- ‘8125:8125’

i’m 99% sure it fails because your first mounted volume is wrong.

it should look something like this:

/mnt/poolname/datasetname/telegrtaf/telegraf.conf:/etc/telegraf/telegraf.conf:ro

You obviously have to create the dataset you want to mount first via truenas gui and edit the permissions.

services:
telegraf:
image: docker.io/telegraf:latest
container_name: telegraf
restart: always
volumes:
- /mnt/App/test/telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- ‘8125:8125’

gave full access rights, the container was running stopped a couple of times and then finally stopped
I would install it via CLI into the system itself, but this can’t be done starting with version 23