Dirk's Tech Findings

Telegraf, InfluxDB: Send data to IPv6 link-local address

Publication date: 2020-12-29

Issue: Telegraf data shall be sent to an InfluxDB that is listening on an IPv6 link-local address only

Link local addresses need a scope identifier to denote the interface to be used. The notation looks like this under Linux:

ping6 fe80::1%eth0

For many applications (like rsync over ssh), the address and scope identifier need to be enclosed by square brackets like this:

[fe80::c%tlwg_mgmt]

However, this notation does not work for ingesting Telegraf data into InfluxDB.

Solution: Encode URL according to RFC 6874

In URLs, the scope identifier needs to be encoded according to RFC 6874. This notation works for Telegraf:

[[outputs.influxdb]]
  urls = ["http://[fe80::1%25tlwg_mgmt]:8086"]

Hint towards the solution

Back to topic list...