Configuring Metrics for Python SDK
Metric support provides essential information regarding the performance of your Python Lambda functions, which translate to carefully calculated statistics. You can examine:
- Memory Metrics
- CPU Metrics
- GC Count
- Thread Count
By simply importing
thundra.thundra_agent, all metrics mentioned above are collected and are presented to you within the Thundra Console.
By simply importing Thundra from
thundra.thundra_agent, all the metrics mentioned above are collected and presented to you within the Thundra console. However, metric monitoring is disabled by default. You can enable them by setting the relevant configuration parameters, which include the
thundra_agent_lambda_metric_disableenvironment variable and the
disable_metricobject initialization parameter.
Programmatic Metric Configuration
thundra = Thundra(api_key=’my_api_key’, disable_metric=False)
Metric Configuration via Environment Variables