Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.14 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.14 KB

latency-test-docker

This is a tool to measure latency in Python3 and report those statistics to an Influx Database.

ENV Var Data
DESTINATIONS Comma separated string
Ex: "google.com,aws.com"
DATABASE-IP Database IP
Ex: 192.168.1.20
DEVICE-NAME Name of the Device
Ex: FIREWALL-01
DATABASE-PORT Port for Writing to The Database
Ex: 8086
DATABASE-NAME Name of the Database in InfluxDB
Ex: latency

A full run would look like: docker run --rm -e DESTINATIONS="plex.com,google.com,aws.com,cloud.google.com" -e DATABASE-IP=192.168.1.20 -e DATABASE-PORT=8086 -e DATABASE-NAME=latency-db -e DEVICE-NAME=Test-Device latency-test-docker

Pass the hosts you would like to test latency too with the following syntax: docker run -e DESTINATIONS=="plex.com,google.com,aws.com,cloud.google.com" latency-test-docker

Pass the InfluxDB Database IP, pass it with the following syntax: docker run -e DATABASE-IP=="192.168.1.20" latency-test-docker