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

yotam-js-metrics-test

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yotam-js-metrics-test

Logz.io node.js metrics Exporter allows user to send collected traces to the Logz.io using OpenTelemetry SDK

  • 0.1.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

This topic includes instructions on how to send custom metrics to Logz.io from your Node.js application.

The included example uses the OpenTelemetry JS SDK and its based on OpenTelemetry exporter collector proto.

Quick start

Before you begin, you'll need: Node 8 or higher

Add instruments to your application:

Set the variables in the following code snippet:

Environment variableDescription
urlThe Logz.io Listener URL for for your region, configured to use port 8052 for http traffic, or port 8053 for https traffic.
tokenYour Logz.io Prometheus Metrics account token.
Types of metric instruments

For more information, see the OpenTelemetry documentation.

NameBehaviorDefault aggregation
CounterMetric value can only go up or be reset to 0, calculated per counter.Add(context,value,labels) request.Sum
UpDownCounterMetric value can arbitrarily increment or decrement, calculated per updowncounter.Add(context,value,labels) request.Sum
ValueRecorderMetric values captured by the valuerecorder.Record(context,value,labels) function, calculated per request.TBD
SumObserverMetric value can only go up or be reset to 0, calculated per push interval.Sum
UpDownSumObserverMetric value can arbitrarily increment or decrement, calculated per push interval.Sum
ValueObserverMetric values captured by the callback function, calculated per push interval.LastValue

Keywords

FAQs

Package last updated on 28 Jul 2021

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