AWS Lambda metrics and dimensions for Splunk Observability Cloud π
The Splunk Lambda Extension of the Splunk OpenTelemetry Lambda layer collects high-resolution, low-latency metrics each time the AWS Lambda function runs, including cold start, invocation count, function lifetime, and termination condition.
AWS Lambda metrics π
The following table contains all the metrics reported by the Splunk Lambda Extension:
Metric name |
Type |
Description |
---|---|---|
|
Counter |
Number of Lambda function calls. |
|
Counter |
Number of function cold starts. |
|
Gauge |
Time spent between the start of the extension and the first Lambda invocation, in milliseconds. |
|
Counter |
Number of function shutdowns. |
|
Gauge |
Lifetime of the function, in milliseconds. The lifetime of the function might span multiple Lambda invocations. |
Note
To track the execution time of a function, consider using alternative indicators, such the lambda.function.lifetime
metric for functions that are called rarely. Another indication of longer execution time might be an increased function concurrency.
AWS Lambda dimensions π
The following table contains all the dimensions reported by the Splunk Lambda Extension:
Dimension name |
Description |
---|---|
|
AWS unique ID. Used to correlate metrics with AWS tags. |
|
Amazon Resource Name (ARN) of the Lambda function instance. |
|
The AWS Region. |
|
The AWS Account ID. |
|
The name of the Lambda function. |
|
The version of the Lambda function. |
|
AWS function version qualifier. Can be version or version alias. Available only for invocations. |
|
The AWS Lambda execution environment. |
|
Reason for the shutdown. Available only for the |
Ingest modes for metrics π
The Splunk Extension for AWS Lambda sends metrics in real time with minimal impact on monitored functions. The following ingest modes are available. Choose the ingest mode that best suits your case. For information on how to configure the ingest modes, see Metrics configuration.
Fast ingest mode π
The fast ingest mode is similar to real-time monitoring in that it sends a metric update every time a monitored function is invoked. Use this mode when your functions are rarely called, accept increased concurrency, or require real-time metrics.
Caution
Fast ingest might have significant impact on the duration of a function. To mitigate the increased duration due to fast ingest, you can activate Fast Invoke Response in AWS Lambda, although this might increase concurrenty and costs in turn.
Buffering mode π
Buffering mode minimizes the impact on monitored functions by buffering data points internally and send them at an interval specified using the REPORTING_RATE
and REPORTING_TIMEOUT
settings.
Use buffering mode when you donβt need near real-time feedback and donβt want to increase function latency. Donβt use buffering mode with functions that are invoked less frequently than the reporting interval, as this might cause delays in data reporting.
Note
Due to AWS Lambda limitations, instrumented functions that use buffering mode send the last batch of data points with significant delay. This happens when each process in the execution environment is complete and there are no pending events.
Troubleshooting π
To troubleshoot AWS Lambda metrics, see No data points or metrics in Splunk Observability Cloud.