ping-statsd

A tool to ping hostnames and send stats to 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: Output

Screenshot of the graphs I've built on Datadog: Dashboard Example

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

  1. Fork it ( https://github.com/[your-github-name]/ping-statsd/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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