Giter VIP home page Giter VIP logo

ping-statsd's Introduction

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

ping-statsd's People

Contributors

chendo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

edasque mehak

ping-statsd's Issues

Bad line: google in msg

My stats is choking on your metrics, because it doesn't support tagging.

Following <metricname>:<value>|<type>

What is this part for: |#host:google.com,name:google ? Seems to be the tag, looking at your code but I don't think all statsD support that. I am guessing you're using DogStatsD since you're using DataDog.

I use the original JS based Etsy statsD

This is the error log:

19 Dec 13:58:31 - DEBUG: Bad line: google in msg "network.ping.total:1|c|#host:google.com,name:google"
....

Is there a way to disable it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.