Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

This AWS Lambda Extension provides full integration with Coralogix service

License

Notifications You must be signed in to change notification settings

coralogix/aws-lambda-extension

Repository files navigation

Coralogix AWS Lambda extension (DEPRECATED)

This Lambda layer has been deprecated. Please refere to our Documentation for our latest layer. Coralogix AWS Telemetry Exporter

Coralogix AWS Lambda extension

goreportcard godoc license GitHub issues GitHub pull requests GitHub contributors

Coralogix is a machine data analytics SaaS platform that drastically improves the delivery & maintenance process for software providers. Using proprietary machine learning algorithms, Coralogix helps over 100 businesses reduce their issue resolution time, improve customer satisfaction and decrease maintenance costs. The extension provides full integration of lambda function with Coralogix service.

Installation

  1. Open Serverless Application Repository service in your AWS Console and find Coralogix-Lambda-Extension application.
  2. Configure CompatibleRuntimes parameter and select runtimes for your purposes (you can select up to 5 runtimes).
  3. Click to Deploy button and wait until extension layer will be created in your account.

Usage

Add extension layer coralogix-extension-<arch> to your function, where arch is one of x86_64 or arm64 and define following environment variables:

  • CORALOGIX_LOG_URL - Coralogix endpoint URL (default: https://api.coralogix.com/api/v1/logs).
  • CORALOGIX_PRIVATE_KEY - A unique ID which represents your company, this Id will be sent to your mail once you register to Coralogix.
  • CORALOGIX_APP_NAME - Used to separate your environment, e.g. SuperApp-test/SuperApp-prod (default: Lambda Function Name).
  • CORALOGIX_SUB_SYSTEM - Your application probably has multiple subsystems, for example, Backend servers, Middleware, Frontend servers etc (default: logs).

Container image lambda

In case if you deploy your lambda as container image, to inject extension as part of your function just copy it to your image:

FROM coralogixrepo/coralogix-lambda-extension:latest AS coralogix-extension
FROM public.ecr.aws/lambda/python:3.8
# Layer code
WORKDIR /opt
COPY --from=coralogix-extension /opt/ .
# Function code
WORKDIR /var/task
COPY app.py .
CMD ["app.lambda_handler"]

More details you can find here.