Git Product home page Git Product logo

copperegg-statsd-backend's Introduction

StatsD backend for Uptime Cloud Monitor

Overview

This is a pluggable backend for StatsD, which publishes stats to Uptime Cloud Monitor.

Requirements

Installation

$ cd /path/to/statsd
$ npm install copperegg-statsd-backend

Configuration

You have to add the following basic configuration information to your StatsD config file. You can find your apikey in the Uptime Cloud Monitor webapp, under Settings.

{
  copperegg: {
    apikey: "ha6dg12d8ah129d"
  }
}

Enabling

Add the copperegg-statsd-backend backend to the list of StatsD backends in the StatsD configuration file:

{
  backends: ["copperegg-statsd-backend"]
}

Start/restart the statsd daemon to pick up the changes and have your metrics sent to Uptime Cloud Monitor.

Additional configuration options

The Uptime Cloud Monitor backend also supports the following optional configuration options under the top-level copperegg hash:

  • debug: For debugging if something goes wrong.

  • metric_group: This is the name of the metric group you created in the Uptime Cloud Monitor UI. Defaults to 'statsd' but you need to create it. It should contain a metric for each metric name you send to statsd.

  • object_name: This is a way to identify the metrics. The default is to use the hostname of the system statsd is running on. You can change this to anything you want as long as it is unique. Metrics you send will be 'attached' to this object.

Publishing to multiple backends simultaneously

You can push metrics to multiple backends simultaneously, such as Uptime Cloud Monitor and Graphite. Just include both backends in the backends variable:

{
  backends: [ "./backends/graphite", "copperegg-statsd-backend" ],
  ...
}

See the statsd manpage for more information.

NPM Dependencies

None

Development

If you want to contribute:

  1. Clone your fork
  2. Hack away
  3. If you are adding new functionality, document it in the README
  4. Push the branch up to GitHub
  5. Send a pull request

copperegg-statsd-backend's People

Contributors

destari 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.