@telemetry-js/processor-ec2-instance-name

0.1.1 • Public • Published

processor-ec2-instance-name

Add name tag of EC2 instance to metrics. The instance tag is normalized to lowercase. If you need more tags, use processor-ec2-instance-tags instead.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

Click to expand

Usage

const telemetry = require('@telemetry-js/telemetry')()
const name = require('@telemetry-js/processor-ec2-instance-name')

telemetry.task()
  .process(name)

// Or with options
telemetry.task()
  .process(name, { /* options */ })

Options

Any options are passed down to processor-ec2-instance-tags. You normally shouldn't need this.

Install

With npm do:

npm install @telemetry-js/processor-ec2-instance-name

Acknowledgements

This project is kindly sponsored by Reason Cybersecurity Ltd.

reason logo

License

MIT © Vincent Weevers

Package Sidebar

Install

npm i @telemetry-js/processor-ec2-instance-name

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

4.1 kB

Total Files

4

Last publish

Collaborators

  • vweevers