Publish metrics as NDJSON to a file (synchronously), stream, stdout or stderr.
Atelemetry
plugin.
Click to expand
const telemetry = require('@telemetry-js/telemetry')()
const ndjson = require('@telemetry-js/publisher-ndjson')
telemetry.task()
.collect(..)
.schedule(..)
.publish(ndjson, './metrics.ndjson')
Yet to document.
With npm do:
npm install @telemetry-js/publisher-ndjson
This project is kindly sponsored by Reason Cybersecurity Ltd.
MIT © Vincent Weevers