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

datadog-metrics

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datadog-metrics

Buffered metrics reporting via the Datadog HTTP API

  • 0.11.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is datadog-metrics?

The datadog-metrics npm package is a client for sending custom metrics to Datadog. It allows developers to easily track and report metrics from their Node.js applications to Datadog for monitoring and alerting purposes.

What are datadog-metrics's main functionalities?

Gauge

Gauges are used to measure the value of a metric at a particular point in time. This code sample initializes the datadog-metrics client and sends a gauge metric with a value of 42.

const metrics = require('datadog-metrics');
metrics.init({ host: 'myhost', prefix: 'myapp.' });
metrics.gauge('my_metric', 42);

Counter

Counters are used to count occurrences of an event. This code sample initializes the datadog-metrics client and increments a counter metric.

const metrics = require('datadog-metrics');
metrics.init({ host: 'myhost', prefix: 'myapp.' });
metrics.increment('my_counter');

Histogram

Histograms are used to measure the statistical distribution of a set of values. This code sample initializes the datadog-metrics client and sends a histogram metric with a value of 0.5.

const metrics = require('datadog-metrics');
metrics.init({ host: 'myhost', prefix: 'myapp.' });
metrics.histogram('my_histogram', 0.5);

Set

Sets are used to count the number of unique elements in a group. This code sample initializes the datadog-metrics client and sends a set metric with a unique value.

const metrics = require('datadog-metrics');
metrics.init({ host: 'myhost', prefix: 'myapp.' });
metrics.set('my_set', 'unique_value');

Other packages similar to datadog-metrics

Keywords

FAQs

Package last updated on 10 Nov 2024

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