Add
instanceidtag to metrics.
Atelemetryplugin.
Click to expand
const telemetry = require('@telemetry-js/telemetry')()
const instanceId = require('@telemetry-js/processor-ec2-instance-id')
telemetry.task()
.process(instanceId)None.
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').cachedWith npm do:
npm install @telemetry-js/processor-ec2-instance-id
This project is kindly sponsored by Reason Cybersecurity Ltd.
MIT © Vincent Weevers
