Public bug reported: After installation, telegraf will currently always try to connect to influxdb in order to output its metrics, but that is not ideal because influxdb might not be available. This also leads to a lot of pollution in the logs:
Feb 19 23:07:51 telegraf-hirsute telegraf[2133]: 2021-02-19T23:07:51Z W! [outputs.influxdb] When writing to [http://localhost:8086]: database "telegraf" creation failed: Post "http://localhost:8086/query": dial tcp [::1]:8086: connect: connection refused Feb 19 23:08:01 telegraf-hirsute telegraf[2133]: 2021-02-19T23:08:01Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp [::1]:8086: connect: connection refused Feb 19 23:08:01 telegraf-hirsute telegraf[2133]: 2021-02-19T23:08:01Z E! [agent] Error writing to outputs.influxdb: could not write any address Feb 19 23:08:11 telegraf-hirsute telegraf[2133]: 2021-02-19T23:08:11Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp [::1]:8086: connect: connection refused Feb 19 23:08:11 telegraf-hirsute telegraf[2133]: 2021-02-19T23:08:11Z E! [agent] Error writing to outputs.influxdb: could not write any address ** Affects: telegraf (Ubuntu) Importance: Medium Assignee: Sergio Durigan Junior (sergiodj) Status: Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1916305 Title: Telegraf shouldn't automatically attempt to connect to influxdb after installation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/telegraf/+bug/1916305/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs