thundra-io / serverless-plugin-thundra-lambda-adapters-cw

Apache License 2.0
0 stars 0 forks source link

serverless-plugin-thundra-lambda-adapters-cw

This plugin is a serverless framework plugin which subscribes Thundra monitoring Lambda to the monitored functions' CloudWatch log groups for listening and sending monitoring data asynchronously.

Installation

Install the plugin via NPM:

npm install --save serverless-plugin-thundra-lambda-adapters-cw

Configuration

Example configuration:

custom:
  ...
  thundraApiKey: <my-api-key>
  thundraAdapterFunctionMemorySize: 1536
  thundraAdapterFunctionTimeout: 100
  thundraSkipAllLogGroupCreations: true
  ...

Usage

By default all functions are monitored over AWS CloudWatch. If you want to exclude specific ones, you need to mark your functions by setting thundraIgnored flag to true.

Example usage:

functions:
  my-function:
      ...
      thundraIgnored: true
      ...
  ...    

Example usage:

functions:
  my-function:
      ...
      thundraSkipLogGroupCreation: true
      ...
  ...