Born on a rainy Sunday afternoon, when my ISP was being its unreliable self again. Measures the latency and packet loss to one of more hosts and reports the data to Prometheus.
The following command line arguments can be passed:
usage: pinger [<flags>] [<hosts>...]
pinger
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
-v, --version Show application version.
--port=8080 Metrics listener port
--endpoint="/metrics" Metrics listener endpoint
--debug Log debug messages
--interval=5s Measurement interval
Args:
[<hosts>] hosts to ping
The target hosts can also be provided by exporting an environment variable 'HOSTS', e.g.
export HOSTS="127.0.0.1 192.168.0.1 192.168.0.200"
If both are provided, the environment variable takes precedence.
Images for arm, arm64 & amd64 are available on ghcr.io.
Pinger exposes the following metrics to Prometheus:
* pinger_packet_count: Total packets sent
* pinger_packet_loss_count: Total packet loss measured
* pinger_latency_seconds: Total latency measured
- Christophe Lambin
This project is licensed under the MIT License - see the LICENSE.md file for details.