Coder Social home page Coder Social logo

json2dog's Introduction

json2dog

Send JSON data from a URL to datadog.

Supported Platforms

  • Ubuntu or CentOS

Usage

# to get our copy of DataDog::DogStatsd
cd lib
export PERL5LIB=`pwd`
cd ..

./json2dog health_url statsd_base

where

  • health_url is a URL to a JSON end point that returns stats we should graph
  • statsd_base is the start of the metric name that should be sent to datadog

Options can be set by setting environment variables:

# set port for dogstatsd (optional)
export DOGSTATSD_PORT=8125

# enable debug mode
export JSON2DOG_DEBUG=1

# log to a file
export JSON2DOG_LOG=/var/log/json2dog.log

./json2dog health_url statsd_base

Other options are used by the init scripts and are documented here.

Dependencies

  • Perl 5
  • Perl module DataDog::DogStatsd is included
  • Perl module JSON
  • Perl module IO::Handle (core module)
  • Perl module IO::Socket::SSL
  • Perl module LWP::UserAgent

The two standard Perl modules mentioned above can be installed my running prereq.sh.

Sample Results

example 1

Support

Please file tickets via github issues.

You may find the CHANGELOG helpful.

Authors

json2dog's People

Contributors

chicks-net avatar

Watchers

 avatar  avatar

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.