@telemetry-js/processor-ec2-instance-id
v0.1.1
Published
Add 'instanceid' tag to metrics
Downloads
4
Maintainers
Readme
processor-ec2-instance-id
Add
instanceid
tag to metrics.
Atelemetry
plugin.
Table of Contents
Usage
const telemetry = require('@telemetry-js/telemetry')()
const instanceId = require('@telemetry-js/processor-ec2-instance-id')
telemetry.task()
.process(instanceId)
Options
None.
Cached variant
By default, each instance of this plugin fetches EC2 instance metadata itself. To only fetch once (with a semiglobal cache) use:
const instanceId = require('@telemetry-js/processor-ec2-instance-id').cached
Install
With npm do:
npm install @telemetry-js/processor-ec2-instance-id
Acknowledgements
This project is kindly sponsored by Reason Cybersecurity Ltd.
License
MIT © Vincent Weevers