Hello!
OS:
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 6.1.0-21-2-amd64
Architecture: x86-64
Telegraf:
Telegraf 1.33.0-26366121 (git: master@26366121)
When running from cli: telegraf --config - its ok, metrics are pushed to influxdb.
But when I set up telegraf as a systemd service - I got this:
E! [outputs.influxdb_v2] When writing to [http:/<influx-ip>:8086/api/v2/write]: Post "http://<influx-ip>:8086/api/v2/write?bucket=bucket1&org=org1": dial tcp <influx-ip>:8086: connect: network is unreachable
Service config:
[Unit]
Description=system-telemetry.service
[Service]
ExecStart=/usr/local/bin/telegraf --config /usr/local/etc/system_telemetry/system_stat.cfg
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target