---
title: Enhanced metrics for AWS Step Functions
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Serverless > Serverless Monitoring for AWS Step Functions > Enhanced
  metrics for AWS Step Functions
---

# Enhanced metrics for AWS Step Functions

In addition to [ingesting integration metrics from AWS](https://docs.datadoghq.com/serverless/step_functions/installation), Datadog generates enhanced metrics for AWS Step Functions, similar to [enhanced metrics for AWS Lambda](https://docs.datadoghq.com/serverless/aws_lambda/metrics#enhanced-lambda-metrics). Enhanced Step Functions metrics are distinguished by being in the `aws.states.enhanced.*` namespace. To add enhanced metrics, follow the [AWS Step Function monitoring installation instructions](https://docs.datadoghq.com/serverless/step_functions/installation) and ensure that `DD_ENHANCED_METRICS` is set to `true`.

The following enhanced Step Functions metrics are available.

{% dl %}

{% dt %}
`aws.states.enhanced.execution.started`
{% /dt %}

{% dd %}
Counts the total number of executions that have started.
{% /dd %}

{% dt %}
`aws.states.enhanced.execution.succeeded`
{% /dt %}

{% dd %}
Counts the total number of executions that have succeeded.
{% /dd %}

{% dt %}
`aws.states.enhanced.execution.failed`
{% /dt %}

{% dd %}
Counts the total number of executions that failed.
{% /dd %}

{% dt %}
`aws.states.enhanced.execution.execution_time`
{% /dt %}

{% dd %}
Distribution of the duration of individual executions.
{% /dd %}

{% dt %}
`aws.states.enhanced.task.execution.tasks_started`
{% /dt %}

{% dd %}
Counts the total number of tasks that have started.
{% /dd %}

{% dt %}
`aws.states.enhanced.task.execution.tasks_succeeded`
{% /dt %}

{% dd %}
Counts the total number of tasks that have succeeded.
{% /dd %}

{% dt %}
`aws.states.enhanced.task.execution.tasks_failed`
{% /dt %}

{% dd %}
Counts the total number of tasks that have failed.
{% /dd %}

{% dt %}
`aws.states.enhanced.task.execution.task_duration`
{% /dt %}

{% dd %}
Distribution of the durations of individual tasks.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.run_duration`
{% /dt %}

{% dd %}
Gauge for durations of a state's runs.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.duration`
{% /dt %}

{% dd %}
Gauge for duration of a state's runs, including retries.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.invocation_count`
{% /dt %}

{% dd %}
Count of the number of times a state is invoked.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.succeeded`
{% /dt %}

{% dd %}
Count of the number of times a state has succeeded.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.failed`
{% /dt %}

{% dd %}
Count of the number of times a state has failed.
{% /dd %}

{% dt %}
`aws.states.enhanced.state.retry_count`
{% /dt %}

{% dd %}
Gauge of the number of retries for a state.
{% /dd %}

{% /dl %}
