Collects ping latency samples for a list of locations, saves them to disk, and renders plots for an overview and per-location time series.
- Update
addresses.jsonwith your locations. - Install
matplotlibin your Python environment.
Example addresses.json:
[
{ "name": "Google DNS", "address": "8.8.8.8" },
{ "name": "Cloudflare DNS", "address": "1.1.1.1" }
]python3 ping_collect.py --duration 60 --output-dir resultsThis writes:
results/ping_samples.jsonresults/ping_samples.csv
python3 ping_plot.py --input-json results/ping_samples.json --output-dir resultsThis writes:
results/latency_overview.png- One plot per location named with the
namefield (e.g.,results/Google_DNS.png)