Skip to content

A statsd plugin for sending metric data to the HostedGraphite service.

Notifications You must be signed in to change notification settings

ravangen/statsdplugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Hosted Graphite statsd plugin

This is a plugin for etsy's statsd that sends your metric data to the Hosted Graphite service.

Installation

Place hostedgraphite.js into the backends/ directory of your statsd install.

Configuration

Accepts same configuration options as graphite.

hostedGraphite:
    legacyNamespace:  use the legacy namespace [default: true]
    globalPrefix:     global prefix to use for sending stats to graphite [default: "stats"]
    prefixCounter:    graphite prefix for counter metrics [default: "counters"]
    prefixTimer:      graphite prefix for timer metrics [default: "timers"]
    prefixGauge:      graphite prefix for gauge metrics [default: "gauges"]
    prefixSet:        graphite prefix for set metrics [default: "sets"]
    globalSuffix:     global suffix to use for sending stats to graphite [default: ""]
                      This is particularly useful for sending per host stats by
                      settings this value to: require('os').hostname().split('.')[0]

Enabling the plugin

Add './backends/hostedgraphite' to the backends list.

backends: ['./backends/hostedgraphite']

Setting the Hosted Graphite key

Set hostedGraphiteAPIKey to your key. This looks like a UUID and is available from your account details page on hostedgraphite.com

hostedGraphiteAPIKey: 'deadbeef-dead-beef-dead-beefdeadbeef'

Example configuration

{
      port: 8125
   ,  backends: ['./backends/hostedgraphite']
   ,  hostedGraphiteAPIKey: 'deadbeef-dead-beef-dead-beefdeadbeef'
   ,  hostedGraphite: {
          legacyNamespace: false
      }
}

About

A statsd plugin for sending metric data to the HostedGraphite service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%