Explore ServiceLens

Service map on CloudWatch ServiceLens

  1. Click here to navigate to CloudWatch ServiceLens.

You should be able to see a service map as shown below. At any given point, you can see trace data for up to a 6 hour time period.

ServiceLens gets all the information you see on this screen from AWS X-Ray and there is no user action required for this.

SLHome

  1. Select the PetSite node.

This will automatically show a quick view of the metrics generated from the service. Because this service is hosted on a container, you will also see that the View in Container Insights is enabled. Clicking on that button will take you directly to the Container Insights screen.

  1. Click the View dashboard button.

This will take you to the service dashboard screen with more metrics from the service.

SL-ServiceMetrics

  1. Select another service (such as DynamoDB or API Gateway) from the drop down bar. You will see that the screen automatically shows metrics from the selected service.

  2. Select a Lambda Function from the drop down bar.

This will show you Lambda specific metrics as shown below. You will also see the logs generated by the Lambda function during the selected time frame. This includes both the log data generated by the Lambda function service and the custom log data generated from within the Lambda function.

SL-ServiceMetrics2

  1. From the Logs1 table, click View in CloudWatch Logs Insights. This will take you to the CloudWatch Logs Insights screen.
  2. Click the Run query button to execute the query and see log data.

SL-LogsInsights

  1. After viewing the log data, return back to the tab with the Lambda specific metrics.

This concludes this section. You may continue on to the next section.