We tried to get data from BIND9 and write it to InfluxDB v2.
Config of telegraf (installed version: 1.18.3-1 under Debian)
[global_tags]
[agent]
interval = “10s”
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = “0s”
flush_interval = “10s”
flush_jitter = “0s”
precision = “”
debug = false
quiet = false
hostname = “”
omit_hostname = false
[[outputs.influxdb_v2]]
urls = [“http//172.16.0.247:8086”]
token = “3IENFtz7MXo44h6crFopAnSKcFPRxFWQZ5oeZiKzP76LoDhMLwOXeKq-ZsqrP0zn1jlA-3thmrHad5R9HYqYfA==”
organization = “Kramski”
bucket = “BIND9”
[[inputs.bind]]
urls = [“http://localhost:8053/json/v1”]
The installed Version of InfluxDBv2: 2.0.6
On InfluxDBv2 i created a Bucket named BIND9 and also an “all access token”
After starting telegraf (on a different host) i got these messages:
Official IP masked with “x”, in the http Link i removed the colon (:), because software says, i can only use 2 links in one posting.
/usr/bin/telegraf -config /etc/telegraf/telegraf.conf
2021-06-02T09:33:10Z I! Starting Telegraf 1.18.3
2021-06-02T09:33:10Z I! Loaded inputs: bind
2021-06-02T09:33:10Z I! Loaded aggregators:
2021-06-02T09:33:10Z I! Loaded processors:
2021-06-02T09:33:10Z I! Loaded outputs: influxdb_v2
2021-06-02T09:33:10Z I! Tags enabled: host=ns01
2021-06-02T09:33:10Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:“ns01”, Flush Interval:10s
2021-06-02T09:33:20Z E! [outputs.influxdb_v2] When writing to [http://172.16.0.247:8086]: Post “http//172.16.0.247:8086/api/v2/write?bucket=BIND9&org=Kramski”: read tcp x.x.x.x:34380->172.16.0.247:8086: read: connection reset by peer
2021-06-02T09:33:20Z E! [agent] Error writing to outputs.influxdb_v2: Post “http//172.16.0.247:8086/api/v2/write?bucket=BIND9&org=Kramski”: read tcp x.x.x.x:34380->172.16.0.247:8086: read: connection reset by peer
With tcpdump i captured the traffic and could see, the packet arrived on destination and answer packets came back.
What is missing or what have i done wrong?
kind regards!