Socket
Socket
Sign inDemoInstall

logzio-nodejs-metrics-sdk

Package Overview
Dependencies
172
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.1.0

3

package.json
{
"name": "logzio-nodejs-metrics-sdk",
"version": "0.0.1",
"version": "0.1.0",
"description": "Logz.io node.js metrics Exporter allows user to send collected metrics to the Logz.io using OpenTelemetry SDK ",

@@ -64,2 +64,3 @@ "main": "src/index.js",

"google-protobuf": "^3.17.3",
"logzio-nodejs-metrics-sdk": "^0.0.1",
"nock": "^13.1.1",

@@ -66,0 +67,0 @@ "protobufjs": "^6.9.0",

@@ -0,1 +1,2 @@

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

@@ -8,4 +9,13 @@

**Note** This project works best with logzio as metrics backend, but its compatible with all backends that support `prometheuesrmotewrite` format
## Quick start
Install the package:
```
npm install logzio-nodejs-metrics-sdk@0.1.0
```
Set the variables in the following code snippet:

@@ -19,7 +29,9 @@

const { MeterProvider } = require('@opentelemetry/metrics');
const { RemoteWriteMetricExporter } = require('yotam-js-metrics-test');
const { RemoteWriteMetricExporter } = require('logzio-nodejs-metrics-sdk');
const collectorOptions = {
url: '<<url>>',
token: '<<token>>',
headers: {
"Authorization":"Bearer <<token>>"
}
};

@@ -63,7 +75,9 @@ // Initialize the exporter

const { MeterProvider } = require('@opentelemetry/metrics');
const { RemoteWriteMetricExporter } = require('yotam-js-metrics-test');
const { RemoteWriteMetricExporter } = require('logzio-nodejs-metrics-sdk');
const collectorOptions = {
url: '<<url>>',
token: '<<token>>',
headers: {
"Authorization":"Bearer <<token>>"
}
};

@@ -70,0 +84,0 @@ // Initialize the exporter

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc