ping-statsd
ping-statsd
Small tool that pings specified addresses and logs timings and packet loss to Statsd (with tagging).
I built this so I can log and graph latency stats for my home connection. You may find it useful to deploy it in production to measure latency to critical services.
Here is the console output from my deployment into a local Flynn cluster I have at home:
Screenshot of the graphs I've built on Datadog:
Installation
Build and run with Docker, or run with Crystal.
Usage
This tool is configured with environment variables for simplicity with running with Docker.
You can supply them like so:
PING_GOOGLE=google.com # emits tags name:google,host:google.com
PING_SOME_IP=8.8.8.8 # emits tags name:some_ip,host:8.8.8.8
METRIC_BASE=namespace.ping # emits metrics at "namespace.ping.{time,timeout,total}"
QUIET=true # optional, suppresses output
INTERVAL=0.2 # optional, sets ping interval to 200ms
Contributing
- Fork it ( https://github.com/[your-github-name]/ping-statsd/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- [your-github-name] Jack Chen (chendo) - creator, maintainer
Repository
ping-statsd
Owner
Statistic
- 10
- 2
- 2
- 0
- 1
- about 6 years ago
- October 6, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 19:57:00 GMT
Languages