Managing applications in the Amazon Lambda console - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Managing applications in the Amazon Lambda console

The Amazon Lambda console helps you monitor and manage your Lambda applications. The Applications menu lists Amazon CloudFormation stacks with Lambda functions. The menu includes stacks that you launch in Amazon CloudFormation by using the Amazon CloudFormation console, the Amazon Serverless Application Repository, the Amazon CLI, or the Amazon SAM CLI.

To view a Lambda application
  1. Open the Lambda console Applications page.

  2. Choose an application.

    A monitoring widget.

The overview shows the following information about your application.

  • Amazon CloudFormation template or SAM template – The template that defines your application.

  • Resources – The Amazon resources that are defined in your application's template. To manage your application's Lambda functions, choose a function name from the list.

Monitoring applications

The Monitoring tab shows an Amazon CloudWatch dashboard with aggregate metrics for the resources in your application.

To monitor a Lambda application
  1. Open the Lambda console Applications page.

  2. Choose Monitoring.

By default, the Lambda console shows a basic dashboard. You can customize this page by defining custom dashboards in your application template. When your template includes one or more dashboards, the page shows your dashboards instead of the default dashboard. You can switch between dashboards with the drop-down menu on the top right of the page.

Custom monitoring dashboards

Customize your application monitoring page by adding one or more Amazon CloudWatch dashboards to your application template with the AWS::CloudWatch::Dashboard resource type. The following example creates a dashboard with a single widget that graphs the number of invocations of a function named my-function.

Example function dashboard template
Resources: MyDashboard: Type: AWS::CloudWatch::Dashboard Properties: DashboardName: my-dashboard DashboardBody: | { "widgets": [ { "type": "metric", "width": 12, "height": 6, "properties": { "metrics": [ [ "AWS/Lambda", "Invocations", "FunctionName", "my-function", { "stat": "Sum", "label": "MyFunction" } ], [ { "expression": "SUM(METRICS())", "label": "Total Invocations" } ] ], "region": "us-east-1", "title": "Invocations", "view": "timeSeries", "stacked": false } } ] }

You can get the definition for any of the widgets in the default monitoring dashboard from the CloudWatch console.

To view a widget definition
  1. Open the Lambda console Applications page.

  2. Choose an application that has the standard dashboard.

  3. Choose Monitoring.

  4. On any widget, choose View in metrics from the drop-down menu.

    A monitoring widget.
  5. Choose Source.

For more information about authoring CloudWatch dashboards and widgets, see Dashboard body structure and syntax in the Amazon CloudWatch API Reference.