a service doing TCP ping and export prometheus metrics for monitoring.
- build the service:
go build -ldflags="-s -w" -trimpath . - copy and modify
target.example.txttotarget.txt - run:
./network-monitor -l :8080 -f target.txt - get report:
curl http://127.0.0.1:8080/metrics
- hot-reload targets
- refactor as library
- api for load/save/reload config
- target groups with custom metrics path
- configurable metrics (packet loss, RTT, RTT distribution)
- https/tls server