New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

qb-statsd

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qb-statsd

Adds statsd listeners to qb

  • 2.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

qb-statsd

Adds StatsD statistics to your qb instance.

Usage

npm install qb-statsd --save
qb.component(require('qb-statsd'), {
  instance: <instance_of_StatsD>, // if you have your own instance
  host: 'mystatsdhost.domain.tld', // if no instance, host is REQUIRED
  port: 8125, // if no instance already setup, port is REQUIRED
  prefix: 'my.prefix', // defaults to `all.`, not used if instance is passed
  heartbeat: 5000 // OPTIONAL, if set, every `heartbeat` milliseconds, a heartbeat will be registered with statsd as an increment
})

var statsdInstance = qb._statsd

Statsd Stats

  • Heartbeat: Set to increment every conf.heartbeat ms. (Not done if conf.heartbeat is falsy)
  • For every task type, a counter of prefix.tasktype.event will be kept, with events of: ['push', 'process', 'success', 'failure']

License

MIT in LICENSE file

Keywords

FAQs

Package last updated on 14 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc