TheCase / docker-ping-influx

docker image to send ping statistics to InfluxDB
2 stars 0 forks source link

docker compose file missing #3

Open martin8310 opened 6 days ago

martin8310 commented 6 days ago

docker compose file missing in the examples. do you have an example for us?

regards Martin

TheCase commented 5 days ago

I wouldn't say it was missing... but I did an example to the README for you.

TheCase commented 5 days ago

Please let me know if you have any issues.

martin8310 commented 4 days ago

Thank you ;-)

Sorry but it dosn't work :-(

192.168.1.1, lost, 0

Traceback (most recent call last):

  File "ping-influx.py", line 32, in <module>

    hit(target)

  File "ping-influx.py", line 25, in hit

    influx(addr, 'lost', res[0])

  File "ping-influx.py", line 20, in influx

    client.write_points(data)

  File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 490, in write_points

    tags=tags, protocol=protocol)

  File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 551, in _write_points

    protocol=protocol

  File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 327, in write

    headers=headers

  File "/usr/lib/python2.7/site-packages/influxdb/client.py", line 267, in request

    timeout=self._timeout

services:

  ping-recorder:
    image: thecase/ping-influx
    container_name: ping-recorder
    environment:
      INFLUXHOST: "influx.local"
      INFLUXPORT: 8086
      INFLUXDB: "pings"
      TARGETS: "192.168.1.1 8.8.8.8"
    restart: always
TheCase commented 3 days ago

Is the address/FQDN of your influx server correct?