Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/datadog-metrics
Advanced tools
TypeScript definitions for datadog-metrics
@types/datadog-metrics provides TypeScript type definitions for the datadog-metrics library, which is used to send custom metrics to Datadog. This package allows developers to leverage TypeScript's type-checking capabilities while using the datadog-metrics library.
Gauge
A gauge is a metric that represents a single numerical value that can arbitrarily go up and down. This code initializes the datadog-metrics library and sends a gauge metric with a value of 42.
const metrics = require('datadog-metrics');
metrics.init({
apiKey: 'YOUR_API_KEY'
});
metrics.gauge('test.gauge', 42);
Counter
A counter is a metric that represents a single numerical value that only ever goes up. This code initializes the datadog-metrics library and increments a counter metric.
const metrics = require('datadog-metrics');
metrics.init({
apiKey: 'YOUR_API_KEY'
});
metrics.increment('test.counter');
Histogram
A histogram is a metric that samples observations (usually things like request durations or response sizes) and counts them in configurable buckets. This code initializes the datadog-metrics library and sends a histogram metric with a value of 42.
const metrics = require('datadog-metrics');
metrics.init({
apiKey: 'YOUR_API_KEY'
});
metrics.histogram('test.histogram', 42);
Set
A set is a metric that counts the number of unique elements in a group. This code initializes the datadog-metrics library and sends a set metric with a value of 42.
const metrics = require('datadog-metrics');
metrics.init({
apiKey: 'YOUR_API_KEY'
});
metrics.set('test.set', 42);
prom-client is a Prometheus client for Node.js that allows you to instrument your application with custom metrics. It provides similar functionalities to datadog-metrics, such as counters, gauges, histograms, and summaries. However, it is designed to work with Prometheus rather than Datadog.
node-statsd is a client for Etsy's StatsD server, which aggregates and summarizes application metrics. It provides similar functionalities to datadog-metrics, such as counters, gauges, and timers. However, it is designed to work with StatsD rather than Datadog.
newrelic is a Node.js agent for New Relic, which provides performance monitoring and management for web applications. It offers similar functionalities to datadog-metrics, such as custom metrics and transaction tracing, but it is designed to work with New Relic's monitoring platform.
npm install --save @types/datadog-metrics
This package contains type definitions for datadog-metrics (https://github.com/dbader/node-datadog-metrics).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/datadog-metrics.
These definitions were written by Jeffery Grajkowski.
FAQs
TypeScript definitions for datadog-metrics
The npm package @types/datadog-metrics receives a total of 934,033 weekly downloads. As such, @types/datadog-metrics popularity was classified as popular.
We found that @types/datadog-metrics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.