Deployment Integrations
On-premise Integrations
Platform Integrations

Metric Configurations

Thundra Python Metrics

Metric support provides essential information regarding the performance of your Python lambda functions, which translate to carefully calculated stats. It lets you examine:

  • Memory metrics

  • CPU metrics

  • GC counts

  • Thread count

Configuring Metrics

By simply importing Thundra from thundra.thundra_agent, all metrics mentioned above are collected and are presented to you within the Thundra Console.

Disabling Sending Metrics

By default, metric monitoring is disabled but can be enabled by setting the relevant configuration parameters. These parameters include the thundra_agent_lambda_metric_disable environment variable and the disable_metric object initialization parameter.

Enabling metric programmatically on agent initialization

Programmatic Metric Configuration
thundra = Thundra(api_key=’my_api_key’, disable_metric=False)

Enabling metric using environment variables

Metric Configuration via Environment Variables
thundra_apiKey: ${self:custom.thundraApiKey}
thundra_agent_lambda_metric_disable: false