npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

statsd-instrumental-backend

v0.13.1

Published

A StatsD backend for Instrumental

Downloads

12

Readme

StatsD Instrumental Backend

Overview

Instrumental is a application monitoring platform built for developers who want a better understanding of their production software. Powerful tools, like the Instrumental Query Language, combined with an exploration-focused interface allow you to get real answers to complex questions, in real-time.

This is a pluggable StatsD backend for sending metrics to Instrumental.

Requirements

Installation

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

Configuration

See our example config file for a complete StatsD configuration.

Otherwise, add the following basic configuration information to your StatsD config file.

{
  instrumental: {
    key: "[project token]",       // REQUIRED
    secure: true,                 // OPTIONAL (boolean), whether or not to use secure protocol to connect to Instrumental, default true
    verifyCert: true,             // OPTIONAL (boolean), should we attempt to verify the server certificate before allowing communication, default true
    timeout: 10000,               // OPTIONAL (integer), number of milliseconds to wait for establishing a connection to Instrumental before giving up, default 10s
    recordCounterRates: true,     // OPTIONAL (boolean) whether or not to send ".rate" metrics with counters, default true
    metricPrefix: "",             // OPTIONAL (string) this will be prepended (with a dot) to ALL of your metrics
    metricFiltersExclude: [],     // OPTIONAL (array of regexes) any metrics matching these filters will be dropped. e.g, [/\.rate$/, /\.[^\.]*_99$/] would filter out counter rates and extra metrics for stats like upper_99, mean_99, etc.
    metricFiltersInclude: []      // OPTIONAL (array of regexes) any metrics _NOT_ matching at least one of these filters will be dropped
  }
}

Filtering Metrics

Metrics can be filtered with either the metricFiltersExclude or metricFiltersInclude options. Note that for a metric to be sent, it must match at least one include and no excludes. An empty or missing metricFiltersInclude option will allow all metrics (assuming the exclusion filter does not exclude any).

Enabling

This is already done if you are using our example configuration.

Otherwise, add statsd-instrumental-backend backend to the list of StatsD backends in the StatsD configuration file:

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

Start/restart the statsd daemon and your StatsD metrics should now be pushed to your Instrumental account.

NPM Dependencies

None

Development

Contributing:

  • Fork the project
  • Make your feature addition or bug fix
  • Commit. Do not mess with package.json, version, or history.
  • Send a pull request. Bonus points for topic branches.