Introduction

AWS Lambda is a compute service that allows code to run without provisioning or managing servers. AWS Lambda executes code only when needed and scales automatically, from a few requests per day to thousands per second.

The cost is based on the compute time that is consumed. For example, you pay only for the compute time you consume; there is no charge when your code is not running.

With AWS Lambda:

  • Code is run for virtually any type of application or back-end service - all with zero administration.
  • Code is run on a high-availability compute infrastructure and
  • Compute infrastructure performs all of the administration of the compute resources, including:
    • server and operating system maintenance.
    • capacity provisioning and automatic scaling.
    • code monitoring and logging.

Setup

To set up the OpsRamp AWS integration and discover the AWS service, go to AWS Integration Discovery Profile and select Lambda.

Metrics

OpsRamp MetricMetric Display NameUnitAggregation TypeDescription
aws_lambda_InvocationsInvocationsCountSumMeasures the number of times a function is invoked in response to an event or invocation API call.
aws_lambda_ErrorsErrorsCountSumMeasures the number of invocations that failed due to errors in the function (response code 4XX).
aws_lambda_DurationDurationMillisecondsAVERAGEMeasures the elapsed wall clock time from when the function code starts executing as a result of an invocation to when it stops executing.
aws_lambda_ThrottlesThrottlesCountSumMeasures the number of Lambda function invocation attempts that were throttled due to invocation rates exceeding the customers concurrent limits (error code 429).
aws_lambda_DeadLetterErrorsDeadLetterErrorsCountSumIncremented when Lambda is unable to write the failed event payload to your functions dead-letter queue.
aws_lambda_IteratorAgeIteratorAgeMillisecondsAverageMeasures the age of the last record for each batch of records processed. Age is the difference between the time Lambda received the batch, and the time the last record in the batch was written to the stream.
aws_lambda_ProvisionedConcurrentExecutionsProvisionedConcurrentExecutionsCountAverageNumber of events that are being processed on provisioned concurrency. For each invocation of an alias or version with provisioned concurrency, Lambda emits the current count.
aws_lambda_ProvisionedConcurrencyInvocationsProvisionedConcurrencyInvocationsCountSumNumber of invocations that are run on provisioned concurrency. Lambda increments the count once for each invocation that runs on provisioned concurrency.
aws_lambda_ProvisionedConcurrencySpilloverInvocationsProvisionedConcurrencySpilloverInvocationsCountSumNumber of invocations that are run on standard concurrency, when all provisioned concurrency is in use. For a version or alias that is configured to use provisioned concurrency, Lambda increments the count once for each invocation that runs on non-provisioned concurrency.
aws_lambda_ProvisionedConcurrencyUtilizationProvisionedConcurrencyUtilizationCountAverageNumber of events that are being processed on provisioned concurrency, divided by Total amount of provisioned concurrency allocated.
aws_lambda_ConcurrentExecutionsConcurrentExecutionsCountAverageMeasures the sum of concurrent executions for a given function at a given point in time.

Event support

CloudTrail event support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

CloudWatch alarm support

  • Supported
  • Configurable in OpsRamp AWS Integration Discovery Profile.

External reference