Skip to content

AWSLambda



Version-1.4.6 · Experimental

The AWS Lambda collector collects AWS Lambda metrics and logs through the Lambda extension.

Installation

Adding a Datakit Layer

Configure the Required Environment Variables

  • ENV_DATAWAY=https://openway.guance.com?token=<your-token>

Metrics

awslambda-metric

  • Tags
Tag Description
aws_account_id AWS Account ID.
aws_lambda_function_memory_size Configured memory size for the Lambda function.
aws_lambda_function_name Lambda function name.
aws_lambda_function_version Lambda function version.
aws_lambda_initialization_type Initialization type of the Lambda function.
aws_region AWS region where the function is executed.
  • List of Metrics
Metric Description Type Unit
billed_duration_ms Billed duration in milliseconds. int ms
duration_ms Total duration in milliseconds. int ms
errors Errors count. int count
init_duration_ms Initialization duration in milliseconds. int ms
invocations Invocation count. int count
max_memory_used_mb Maximum memory used in MB. int Mb
memory_size_mb Memory size configured for the Lambda function in MB. int Mb
out_of_memory Out of memory errors count. int count
post_runtime_duration Duration of the post-runtime phase in milliseconds. int ms
produced_bytes Bytes produced. int B
response_duration_ms Response duration in milliseconds. int ms
response_latency Response latency in milliseconds. int ms
runtime_duration_ms Duration of the runtime in milliseconds. int ms
timeouts Timeouts count. int count

awslambda-logging

  • Tags
Tag Description
aws_log_from log sources, currently only function are supported
  • List of Metrics
Metric Description Type Unit
message Log message. string -

Collector Support

  • OpenTelemetry
  • statsd
  • ddtrace # Currently, only Go is supported. Due to special operations required by ddtrace in the lambda environment, you need to add tracer.WithLambdaMode(false).

Feedback

Is this page helpful? ×