Lambda is a serverless computing service provided by Amazon Web
Services (AWS). It allows you to execute code in a scalable and reliable
manner without the need to provision or manage servers. With Lambda,
you can create functions that are triggered by events, such as changes
in S3 buckets, updates in DynamoDB tables, messages received in the SQS
queue service, among others. Each function runs in an isolated
environment and automatically scales based on demand, eliminating the
need for manual scaling. Additionally, Lambda supports multiple
programming languages, including Python, Node.js, Java, C#, and Go,
allowing you to choose your preferred language. With its flexibility and
scalability, Lambda is widely used for building microservices
architectures, real-time event processing, serverless API creation, and
task automation, making application development more agile and
efficient.
How to monitor Lambda on the One Platform:
- Go to the product application where you want to add Lambda as a dependency.
- Click on the “Products” menu.
- Click on the desired product card.
- Click on the name of the desired application.
- In “External Dependencies,” located below the latency chart, you can add or search for an already registered dependency.
- To search for a dependency, enter its name in the search field.
- To add a new dependency, click on the green button with a plus symbol (+).
When you click on “Add,” a modal will appear. In this modal, you will
name your queue and choose the Environment. In the “Check type” field,
select the option “Queue,” and in the “Method” field, choose “Lambda
(AWS).” After selecting the method, a field for “Healthcheck URL” will
appear.
Check the checkbox NAME for Lambda monitoring.
Below is an example string for Lambda:
ex: ACCESS_KEY:SECRET_ACCESS_KEY/AWS-REGION@functionName
We use the AWS CloudWatch API to search for Lambda logs and metrics. Click here to read more about their pricing.
Note: For security reasons, it is
not permitted to enter an IP in the healthcheck field. To monitor an IP,
you need to enter it in a secret and use it in healthcheck