Serverless Monitoring With New Relic: AWS Lambda and Beyond

No servers to manage — but plenty to observe

Serverless removes servers, not problems. Cold starts, timeouts, throttling, and fan-out across many functions all need visibility.

Instrumentation

New Relic provides Lambda layers with the agent and an extension that sends telemetry without slowing your function. Install via the New Relic CLI, the Serverless Framework plugin, AWS SAM, CDK, or Terraform.

You'll also connect the AWS integration for CloudWatch metrics.

What to Watch

  • Invocations and errors per function
  • Duration — average and p95/p99
  • Cold starts — frequency and added latency
  • Throttles — concurrency limits hit
  • Timeouts — functions running out of time
  • Memory usage vs. configured memory

Queries

SELECT count(*), percentage(count(*), WHERE error IS true)
FROM AwsLambdaInvocation FACET aws.lambda.arn SINCE 1 day ago
SELECT average(duration) FROM AwsLambdaInvocation
WHERE aws.lambda.coldStart IS true FACET entityName SINCE 1 day ago

Distributed Tracing

A request can flow through API Gateway → Lambda → SQS → another Lambda → DynamoDB. Tracing connects those hops so you can see where time is spent.

Cost Signals

Duration × memory drives Lambda cost. Monitoring helps you right-size memory (more memory can sometimes reduce duration and cost).

Tips

  • Alert on error rate and throttles, not single errors
  • Watch dead-letter queues for failed async events
  • Tag functions by service and team

Serverless makes scaling easy and debugging distributed. Tracing is what puts the story back together.

Arivanandhan Chitheshwaran