npm.io
0.0.21 • Published 3 years ago

monitara-exporter

Licence
MIT
Version
0.0.21
Deps
8
Size
24 kB
Vulns
2
Weekly
0

Monitara-Exporter


monitara-exporter is a small, dependency-free library for exports opentelemetry logs to monitara APM .

Installation

$ npm i monitara-exporter

Usage

//make sure you call monitara exporter before any other framework init
import  {MonitaraExporter}  from "monitara-exporter";

const monitaraExporter = new MonitaraExporter({
    apiKey: YOUR_API_KEY,
    node: YOUR_END_POINT_NODE,
});

monitaraExporter.start()

Full Usage

import  {MonitaraExporter}  from "monitara-exporter";
const monitaraExporter = new MonitaraExporter({
    apiKey: YOUR_API_KEY,
    node: YOUR_END_POINT_NODE,
    silent: false,
    queueConcurrent: 1,
    maxBatchSize: 200,
    interval: 2000
});
monitaraExporter.start()

API

new MonitaraExporter(options)

Create a new MonitaraExport instance.

Option Default Description
apiKey `` Monitara open telemetry apiKey
node `` Monitara Opentelemetry end point
queueConcurrent 1 How many tasks should be executed in parallel
maxBatchSize 200 Max documents size per task
interval 2000 How often should new tasks be executed (in ms)
silent false Verbose mode

Build

$ npm run build

Keywords