logzio-nodejs-metrics-sdk
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"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 |
61629
199
13
+ Addedlogzio-nodejs-metrics-sdk@0.0.1(transitive)