GithubHelp home page GithubHelp logo

circonus-statsd-http's Introduction

circonus-statsd-http

StatsD backend for Circonus, send metrics via HTTPTRAP check. The existing graphite backend was used as a template.

Use

  1. Install StatsD
  2. Copy circonus.js into backends/ (where StatsD is installed)
  3. Create HTTPTRAP check in Circonus
  4. Configure Circonus backend (see below)
  5. Start, or restart, StatsD

Configuration options

In the StatsD configuration file:

  1. Add "./backends/circonus" to backends: [...] array
  2. Add circonus: {...} section
circonus: {
  check_url: ""
  , cert_url: ""
  , globalPrefix: ""
  , prefixCounter: ""
  , prefixTimer: ""
  , prefixGauge: ""
  , prefixSet: ""
  , sendTimerDerivatives: true
  , sendMemoryStats: true
}
option required type description
check_url yes string HTTPTRAP check submission URL to which metrics will be sent
cert_url no* string broker CA certificate URL [default: http://login.circonus.com/pki/ca.crt].
* Note: URL must be set for a Circonus Inside installation.
globalPrefix no string global prefix to use for sending metrics to Circonus [default: ""]
prefixCounter no string prefix for counter metrics [default: "counters"]
prefixTimer no string prefix for timer metrics [default: "timers"]
prefixGauge no string prefix for gauge metrics [default: "gauges"]
prefixSet no string prefix for set metrics [default: "sets"]
sendTimerDerivatives no boolean send standard StatsD derivatives for timer metrics [default: true]. Raw timer data is sent to Circonus as a histogram.
sendRawTimers no boolean send raw timers (as an array) to Circonus as a histogram. [default: false] Timers are sent as pre-bucketed histograms.
sendMemoryStats no boolean send memory utilization metrics (process.memoryUsage()) for StatsD process [default: true]

Example

The bare minimum would be:

  1. Create an HTTPTRAP check in Circonus.
  2. Create a config (skeleton below, e.g. config.js).
  3. Put the submission url, from the new check, between the quotes next to check_url and save the config.
  4. Start statsd as usual e.g. node stats.js config.js
  5. Send metrics to port 8125.
{
  port: 8125,
  address: "127.0.0.1",
  flushInterval: 60000,
  backends: [ "./backends/circonus" ],
  keyNameSanitize: false,
  circonus: {
    check_url: "..."
  }
}

circonus-statsd-http's People

Contributors

maier avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

eric-guo

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.