Skip to content

Add 'cluster', 'region', 'name' and 'image' tags to metrics.

License

Notifications You must be signed in to change notification settings

telemetry-js/processor-ecs-tags

Repository files navigation

processor-ecs-tags

Add cluster, region, name and image tags to metrics. Fetched from ECS Task Metadata Endpoint V2 or V3. Only works in an ECS container.
A telemetry plugin.

npm status node Test JavaScript Style Guide

Table of Contents

Click to expand

Usage

const telemetry = require('@telemetry-js/telemetry')()
const tags = require('@telemetry-js/processor-ecs-tags')

telemetry.task()
  .process(tags, { version: 2 })

Options

  • version: required, number, either 2 or 3. Must be 2 when you're using a Fargate cluster; Fargate does not support v3.

Install

With npm do:

npm install @telemetry-js/processor-ecs-tags

Acknowledgements

This project is kindly sponsored by Reason Cybersecurity Ltd.

reason logo

License

MIT © Vincent Weevers

About

Add 'cluster', 'region', 'name' and 'image' tags to metrics.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published