azure-sb-statsd

1.2.1 • Public • Published

Azure-SB StatsD Build Status

A little app that will poll one or more azure-servicebus endpoints and push their statistics out to statsd.

npm i -g azure-sb-statsd
azure-sb-statsd /path/to/config/files/

Gauges

Queue

  • sizeinbytes
  • percentused (calculated from MaxSizeInMegabytes and SizeInBytes)
  • activemessagecount
  • deadlettermessagecount
  • scheduledmessagecount
  • transfermessagecount
  • transferdeadlettermessagecount

Topic

  • subscriptioncount
  • sizeinbytes
  • percentused (calculated from MaxSizeInMegabytes and SizeInBytes)

Subscription

  • activemessagecount
  • deadlettermessagecount
  • scheduledmessagecount
  • transfermessagecount
  • transferdeadlettermessagecount

Config Files

azure-sb.json

[
  {
    "host": "https://my.servicebus.windows.net",
    "key": "accesskey",
    "keyname": "RootManageSharedAccessKey", // chances are you'll need to use the rootmanage key
    "queues": true,                         // log info for queues
    "topics": true,                         // log info for topics (and subscriptions)
    "ignoredsubscriptions": ["foo"]         // optional array of regex patterns for ignored subscriptions
    "prefix": "foo.bar.azuresb.yay",        // optional prefix for metrics from this instance
    "tags": {                               // optional, tags are supported by the influxdb backend
      "foo": "bar"
    }
  },
  {
     //...
  }
]

statsd.json

{
  "host": "localhost",
  "port": 8125,          // default: 8125
  "interval": 10,        // how often to poll the azuresb servers, default: 10 seconds
  "debug": true,         // show debug output from the statsd client
  "prefix": "my.stats"   // global prefix for metrics
}

Readme

Keywords

none

Package Sidebar

Install

npm i azure-sb-statsd

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • andyroyle