Skip to content

Usage Metrics

In order to help us improve the Nx Plugin for AWS, we collect metrics on generator usage. This process involves no additional network requests, we simply leverage existing AWS usage metrics.

To remain transparent, we append an ID, version, and list of generator IDs to CloudFormation Stack descriptions. This is done in the MetricsAspect in common/constructs for CDK or in the metrics.tf Cloudformation stack for Terraform.

The metrics code lives entirely in your workspace, so you can opt out by removing it:

  • CDK: remove the MetricsAspect class and the Aspects.of(this).add(new MetricsAspect()) call from packages/common/constructs/src/core/app.ts.
  • Terraform: delete packages/common/terraform/src/metrics/metrics.tf.

Generators will not re-add the metrics code once removed.