Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eventsd-metric

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventsd-metric

eventsd metric protocol module

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

eventsd-metric

A library for sending metrics with EventsD

Usage

    var Metric = require('eventsd-metric');

    var metric = new Metric();

    // Returns a promise
    metric.increment('my.metric', 1);

Methods

All methods of the Metric class return a promise.

Several convience methods are available for specifiing the type of aggregation that should be used for a metric.

Methods:

  • increment - simple counter
  • decrement - simple counter
  • min
  • max
  • mean
  • gauge - last value wins (and persists)
  • timing - track mean, standard deviation, min, max, and count
  • unique - count of unique values

Options

See EventsD options

Environment Variables

See EventsD environment variables

Run Tests

  npm test

====================

Author: Craig Thayer
License: ISC

See LICENSE for the full license text.

Keywords

FAQs

Package last updated on 30 Nov 2016

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