Amazon Lambda monitoring
Dynatrace ingests metrics for multiple preselected namespaces, including Amazon Lambda. You can view metrics for each service instance, split metrics into multiple dimensions, and create custom charts that you can pin to your dashboards.
Prerequisites
To enable monitoring for this service, you need
-
ActiveGate version 1.197+, as follows:
-
For Dynatrace SaaS deployments, you need an Environment ActiveGate or a Multi-environment ActiveGate.
-
For Dynatrace Managed deployments, you can use any kind of ActiveGate.
For role-based access (whether in a SaaS or Managed deployment), you need an Environment ActiveGate installed on an Amazon EC2 host.
-
-
Dynatrace version 1.200+
-
An updated AWS monitoring policy to include the additional AWS services.
To update the AWS IAM policy, use the JSON below, containing the monitoring policy (permissions) for all supporting services.
If you don't want to add permissions to all services, and just select permissions for certain services, consult the table below. The table contains a set of permissions that are required for all services (All monitored Amazon services) and, for each supporting service, a list of optional permissions specific to that service.
Example of JSON policy for one single service.
In this example, from the complete list of permissions you need to select
"apigateway:GET"
for Amazon API Gateway"cloudwatch:GetMetricData"
,"cloudwatch:GetMetricStatistics"
,"cloudwatch:ListMetrics"
,"sts:GetCallerIdentity"
,"tag:GetResources"
,"tag:GetTagKeys"
, and"ec2:DescribeAvailabilityZones"
for All monitored Amazon services.
Enable monitoring
To enable monitoring for this service, you first need to integrate Dynatrace with Amazon Web Services:
Add the service to monitoring
In order to view the service metrics, you must add the service to monitoring in your Dynatrace environment.
All cloud services consume Davis data units (DDUs). The amount of DDU consumption per service instance depends on the number of monitored metrics and their dimensions (each metric dimension results in the ingestion of 1 data point; 1 data point consumes 0.001 DDUs).
Monitor resources based on tags
You can choose to monitor resources based on existing AWS tags, as Dynatrace automatically imports them from service instances. Nevertheless, the transition from AWS to Dynatrace tagging isn't supported for all AWS services. Expand the table below to see which cloud services are filtered by tagging.
To monitor resources based on tags
- In the Dynatrace menu, go to Settings > Cloud and virtualization > AWS and select Edit for the desired AWS instance.
- For Resources to be monitored, select Monitor resources selected by tags.
- Enter the Key and Value.
- Select Save.
Configure service metrics
Once you add a service, Dynatrace starts automatically collecting a suite of metrics for this particular service. These are recommended metrics.
Recommended metrics:
- Are enabled by default
- Can't be disabled
- Can have recommended dimensions (enabled by default, can't be disabled)
- Can have optional dimensions (disabled by default, can be enabled)
Apart from the recommended metrics, most services have the possibility of enabling optional metrics.
Optional metrics:
- Can be added and configured manually
View service metrics
You can view the service metrics in your Dynatrace environment either on the custom device overview page or on your Dashboards page.
View metrics on the custom device overview page
To access the custom device overview page
- In the Dynatrace menu, go to Technologies and processes.
- Filter by service name and select the relevant custom device group.
- Once you select the custom device group, you're on the custom device group overview page.
- The custom device group overview page lists all instances (custom devices) belonging to the group. Select an instance to view the custom device overview page.
View metrics on your dashboard
After you add the service to monitoring, a preset dashboard containing all recommended metrics is automatically listed on your Dashboards page. To look for specific dashboards, filter by Preset and then by Name.
For existing monitored services, you might need to resave your credentials for the preset dashboard to appear on the Dashboards page. To resave your credentials, go to Settings > Cloud and virtualization > AWS, select the desired AWS instance, and then select Save.
You can't make changes on a preset dashboard directly, but you can clone and edit it. To clone a dashboard, open the browse menu (…) and select Clone.
To remove a dashboard from the dashboards page, you can hide it. To hide a dashboard, open the browse menu (…) and select Hide.
Hiding a dashboard doesn't affect other users.
To check the availability of preset dashboards for each AWS service, see the list below.
Available metrics
This service monitors a part of Amazon Lambda (AWS/Lambda). While you have this service configured, you can't have Amazon Lambda (built-in) service turned on.
Name | Description | Dimensions | Unit | Recommended |
---|---|---|---|---|
Duration | The amount of time that your function code spends processing an event. | FunctionName | Milliseconds | |
Duration | The amount of time that your function code spends processing an event. | FunctionName, Resource | Milliseconds | |
ConcurrentExecutions | The number of function instances that are processing events. | FunctionName | Count | |
ConcurrentExecutions | The number of function instances that are processing events. | FunctionName, Resource | Count | |
Invocations | The number of times that your function code is invoked, including successful invocations and invocations that result in a function error. | FunctionName | Count | |
Invocations | The number of times that your function code is invoked, including successful invocations and invocations that result in a function error. | FunctionName, Resource | Count | |
Throttles | The number of invocation requests that are throttled. | FunctionName | Count | |
Throttles | The number of invocation requests that are throttled. | FunctionName, Resource | Count | |
Errors | The number of invocations that result in a function error. | FunctionName | Count | |
Errors | The number of invocations that result in a function error. | FunctionName, Resource | Count | |
Invocations | The number of times that your function code is invoked, including successful invocations and invocations that result in a function error. | Region | Count | |
AsyncEventAge | The time between when Lambda successfully queues the event and when the function is invoked. | FunctionName | Milliseconds | |
AsyncEventAge | The time between when Lambda successfully queues the event and when the function is invoked. | FunctionName, Resource | Milliseconds | |
AsyncEventsReceived | The number of events that Lambda successfully queues for processing. | FunctionName | Count | |
AsyncEventsReceived | The number of events that Lambda successfully queues for processing. | FunctionName, Resource | Count | |
AsyncEventsDropped | The number of events that are dropped without successfully executing the function. | FunctionName | Count | |
AsyncEventsDropped | The number of events that are dropped without successfully executing the function. | FunctionName, Resource | Count | |
Errors | The number of invocations that result in a function error. | Region | Count | |
AsyncEventAge | The time between when Lambda successfully queues the event and when the function is invoked. | Region | Milliseconds | |
AsyncEventsDropped | The number of events that are dropped without successfully executing the function. | Region | Count | |
Duration | The amount of time that your function code spends processing an event. | Region | Milliseconds | |
UnreservedConcurrentExecutions | For a Region, the number of events that functions without reserved concurrency are processing. | Region | Count | |
AsyncEventsReceived | The number of events that Lambda successfully queues for processing. | Region | Count | |
Throttles | The number of invocation requests that are throttled. | Region | Count | |
ConcurrentExecutions | The number of function instances that are processing events. | Region | Count | |
DeadLetterErrors | For asynchronous invocation, the number of times that Lambda attempts to send an event to a dead-letter queue (DLQ) but fails. | FunctionName, Resource | Count | |
DeadLetterErrors | For asynchronous invocation, the number of times that Lambda attempts to send an event to a dead-letter queue (DLQ) but fails. | FunctionName | Count | |
DeadLetterErrors | For asynchronous invocation, the number of times that Lambda attempts to send an event to a dead-letter queue (DLQ) but fails. | Region | Count | |
DestinationDeliveryFailures | For asynchronous invocation and supported event source mappings, the number of times that Lambda attempts to send an event to a destination but fails. | Region | Count | |
DestinationDeliveryFailures | For asynchronous invocation and supported event source mappings, the number of times that Lambda attempts to send an event to a destination but fails. | FunctionName, Resource | Count | |
DestinationDeliveryFailures | For asynchronous invocation and supported event source mappings, the number of times that Lambda attempts to send an event to a destination but fails. | FunctionName | Count | |
ProvisionedConcurrencyInvocations | The number of times that your function code is invoked using provisioned concurrency. | Region | Count | |
ProvisionedConcurrencyInvocations | The number of times that your function code is invoked using provisioned concurrency. | FunctionName, Resource | Count | |
ProvisionedConcurrencyInvocations | The number of times that your function code is invoked using provisioned concurrency. | FunctionName | Count | |
ProvisionedConcurrencySpilloverInvocations | The number of times that your function code is invoked using standard concurrency when all provisioned concurrency is in use. | Region | Count | |
ProvisionedConcurrencySpilloverInvocations | The number of times that your function code is invoked using standard concurrency when all provisioned concurrency is in use. | FunctionName, Resource | Count | |
ProvisionedConcurrencySpilloverInvocations | The number of times that your function code is invoked using standard concurrency when all provisioned concurrency is in use. | FunctionName | Count | |
RecursiveInvocationsDropped | The number of times that Lambda has stopped invocation of your function because it's detected that your function is part of an infinite recursive loop. | Region | Count | |
RecursiveInvocationsDropped | The number of times that Lambda has stopped invocation of your function because it's detected that your function is part of an infinite recursive loop. | FunctionName, Resource | Count | |
RecursiveInvocationsDropped | The number of times that Lambda has stopped invocation of your function because it's detected that your function is part of an infinite recursive loop. | FunctionName | Count | |
PostRuntimeExtensionsDuration | The cumulative amount of time that the runtime spends running code for extensions after the function code has completed. | FunctionName | Milliseconds | |
PostRuntimeExtensionsDuration | The cumulative amount of time that the runtime spends running code for extensions after the function code has completed. | FunctionName, Resource | Milliseconds | |
PostRuntimeExtensionsDuration | The cumulative amount of time that the runtime spends running code for extensions after the function code has completed. | Region | Milliseconds | |
IteratorAge | For DynamoDB, Kinesis, and Amazon DocumentDB event sources, the age of the last record in the event. | FunctionName | Milliseconds | |
IteratorAge | For DynamoDB, Kinesis, and Amazon DocumentDB event sources, the age of the last record in the event. | FunctionName, Resource | Milliseconds | |
IteratorAge | For DynamoDB, Kinesis, and Amazon DocumentDB event sources, the age of the last record in the event. | Region | Milliseconds | |
OffsetLag | For self-managed Apache Kafka and Amazon Managed Streaming for Apache Kafka (Amazon MSK) event sources, the difference in offset between the last record written to a topic and the last record that your function's consumer group processed. | FunctionName | Milliseconds | |
OffsetLag | For self-managed Apache Kafka and Amazon Managed Streaming for Apache Kafka (Amazon MSK) event sources, the difference in offset between the last record written to a topic and the last record that your function's consumer group processed. | FunctionName, Resource | Milliseconds | |
OffsetLag | For self-managed Apache Kafka and Amazon Managed Streaming for Apache Kafka (Amazon MSK) event sources, the difference in offset between the last record written to a topic and the last record that your function's consumer group processed. | Region | Milliseconds | |
ProvisionedConcurrentExecutions | The number of function instances that are processing events using provisioned concurrency. | FunctionName | Count | |
ProvisionedConcurrentExecutions | The number of function instances that are processing events using provisioned concurrency. | FunctionName, Resource | Count | |
ProvisionedConcurrentExecutions | The number of function instances that are processing events using provisioned concurrency. | Region | Count | |
ProvisionedConcurrencyUtilization | For a version or alias, the value of ProvisionedConcurrentExecutions divided by the total amount of provisioned concurrency allocated. | FunctionName | Count | |
ProvisionedConcurrencyUtilization | For a version or alias, the value of ProvisionedConcurrentExecutions divided by the total amount of provisioned concurrency allocated. | FunctionName, Resource | Count | |
ProvisionedConcurrencyUtilization | For a version or alias, the value of ProvisionedConcurrentExecutions divided by the total amount of provisioned concurrency allocated. | Region | Count |