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

hot-shots

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hot-shots

Node.js client for StatsD, DogStatsD, and Telegraf

  • 4.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
526K
decreased by-65.95%
Maintainers
1
Weekly downloads
 
Created

What is hot-shots?

The hot-shots npm package is a Node.js client for StatsD, a network daemon that runs on the Node.js platform and listens for statistics, like counters and timers, sent over UDP or TCP and sends them to Graphite or other backends. It is an extension of the original statsd client, adding new features and fixing some existing ones.

What are hot-shots's main functionalities?

Increment

Increments a counter by 1. Useful for counting page views, downloads, or other metrics that increase in quantity.

const StatsD = require('hot-shots');
const client = new StatsD();
client.increment('page.views');

Timing

Sends a timing command for tracking how long events take. Useful for tracking request response times or other time-based metrics.

const StatsD = require('hot-shots');
const client = new StatsD();
client.timing('response_time', 42);

Gauge

Sets a gauge to a specific value. Gauges are a simple metric that represent a number that can go up or down, like fuel level or temperature.

const StatsD = require('hot-shots');
const client = new StatsD();
client.gauge('fuel.level', 0.75);

Set

Records the number of unique events between flushes. Useful for tracking unique visitors, emails, or other metrics where you want to count the occurrence of unique items.

const StatsD = require('hot-shots');
const client = new StatsD();
client.set('unique.visitors', 205);

Other packages similar to hot-shots

Keywords

FAQs

Package last updated on 31 Oct 2017

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