This extension not only simplifies data collection but also aggregates and transmits it in bulk, while offering advanced capabilities for metrics and log collection. Integrating the Atatus Lambda Extension allows you to monitor your AWS Lambda functions seamlessly by adding the Atatus Lambda Extension layer along with agent layer.
Serverless Framework
Follow these steps to integrate the Atatus Lambda Extension using the Serverless Framework:
1. Add the Lambda Extension Layer:
Add both the Atatus Lambda Extension and Agent layer ARNs to your serverless.yaml
file:
# For Nodejs Lambda functions:
layers:
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-NodeJS:5
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Lambda-Extension-x86_64:4
# For Python Lambda functions:
layers:
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Python:4
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Lambda-Extension-x86_64:4
2. Enable the Atatus Extension:
Add the ATATUS_EXTENSION_ENABLED
environment variable to activate the extension:
environment:
ATATUS_EXTENSION_ENABLED: true
3. Collect Function and Extension Logs (Optional):
Enable the collection of function and extension logs by adding the following environment variables:
environment:
ATATUS_EXTENSION_SEND_FUNCTION_LOGS: true
ATATUS_EXTENSION_SEND_EXTENSION_LOGS: true
4. Enable Debugging (Optional):
Set the logging level to debug
for troubleshooting:
environment:
ATATUS_EXTENSION_LOG_LEVEL: debug
5. Specify the Trace Collection Port (Optional):
Use a custom port for trace collection by setting the ATATUS_EXTENSION_PORT
environment variable:
environment:
ATATUS_EXTENSION_PORT: <PORT_NUMBER>
SAM Template
Follow these steps to integrate the Atatus Lambda Extension using the AWS SAM Template:
1. Add the Lambda Extension Layer:
Add both the Atatus Lambda Extension and Agent layer ARNs to your serverless.yaml
file:
# For Nodejs Lambda functions:
Layers:
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-NodeJS:5
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Lambda-Extension-x86_64:4
# For Python Lambda functions:
Layers:
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Python:4
- arn:aws:lambda:us-east-1:317265140635:layer:Atatus-Lambda-Extension-x86_64:4
2. Enable the Atatus Extension:
Add the ATATUS_EXTENSION_ENABLED
environment variable to activate the extension:
Environment:
Variables:
ATATUS_EXTENSION_ENABLED: true
3. Collect Function and Extension Logs (Optional):
Enable the collection of function and extension logs by adding the following environment variables:
Environment:
Variables:
ATATUS_EXTENSION_SEND_FUNCTION_LOGS: true
ATATUS_EXTENSION_SEND_EXTENSION_LOGS: true
4. Enable Debugging (Optional):
Set the logging level to debug
for troubleshooting:
Environment:
Variables:
ATATUS_EXTENSION_LOG_LEVEL: debug
5. Specify the Trace Collection Port (Optional):
Use a custom port for trace collection by setting the ATATUS_EXTENSION_PORT
environment variable:
Environment:
Variables:
ATATUS_EXTENSION_PORT: <PORT_NUMBER>
By following these steps, you can easily set up Atatus monitoring for your AWS Lambda functions, ensuring seamless performance tracking and debugging capabilities.