---
title: Derived Metrics
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Metrics > Derived Metrics
---

# Derived Metrics

{% callout %}
##### Join the Preview!

The Derived Metrics feature is in Preview.

[Request Access](https://docs.google.com/forms/d/e/1FAIpQLScUkDpqIQNN1G4llFA7JN2qeevIp4wqfyDaa4A7lRCEa9FopQ/viewform?usp=header)
{% /callout %}

## Overview{% #overview %}

Derived Metrics allow you to save any metrics query as a new metric, so you can simplify and optimize how you work with metrics in Datadog. Instead of repeatedly building complex queries across dashboards, monitors, SLOs, and notebooks, you can create a derived metric once and reuse it across all your assets. Use derived metrics to:

- **Simplify querying**: Define a query once, save it as a derived metric, and reuse it everywhere.
- **Reduce errors and increase consistency**: Maintain formulas centrally to avoid errors and ensure uniformity across teams.
- **Accelerate workflows**: No code changes or new metric submissions needed-—-create new metrics directly from existing metrics in Datadog.
- **Gain control and auditability**: Manage, and improve derived formulas in a single place.

**Note**: Derived Metrics are **not** billed as Custom Metrics, because they are computed dynamically at query time and are not stored or indexed.

## Create a derived metric{% #create-a-derived-metric %}

To create a derived metric, navigate to **[Metrics > Generate Metrics](https://app.datadoghq.com/metric/generate-metrics)** and click **+ New Metric**.

{% image
   source="https://docs.dd-static.net/images/metrics/derived_metrics/generate_metrics_tab.97ec8f9df43e7dd591a7a39520829ef8.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/metrics/derived_metrics/generate_metrics_tab.97ec8f9df43e7dd591a7a39520829ef8.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The generate metrics tab in Datadog" /%}

1. Give your derived metric a name that does **not** start with `datadog.estimated_usage`. Use the format described in [naming custom metrics](https://docs.datadoghq.com/metrics/custom_metrics.md#naming-custom-metrics).

1. Define any underlying metrics queries, and optionally use the formula box to define mathematical operations to perform on the metric values.

For example, to monitor the overall stability of Kafka connectors, you could create individual queries `a` and `b` using the metrics `kafka.connect.connector.status.running` and `kafka.connect.connector.status.failed`. Then, in the formula box, enter the formula `(a / (a + b)) * 100`.

For more information on how to define metric queries, see [querying metrics](https://docs.datadoghq.com/metrics.md#querying-metrics).

{% image
   source="https://docs.dd-static.net/images/metrics/derived_metrics/derived_metric_query.ac5fb0a4bd4e3d376ebbfb8db3207baf.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/metrics/derived_metrics/derived_metric_query.ac5fb0a4bd4e3d376ebbfb8db3207baf.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="A Datadog metric query to generate a derived metric" /%}
Click **Create Metric**.
## Update a derived metric{% #update-a-derived-metric %}

To update a derived metric, hover over the metric and click the **Edit** icon that appears to the right.

**Note**: You cannot rename an existing metric. Create a new metric instead.

## Delete a derived metric{% #delete-a-derived-metric %}

To delete a derived metric, hover over the derived metric and click the **Delete** icon that appears to the right.

## Further reading{% #further-reading %}

- [Auto-smooth noisy metrics to reveal trends](https://www.datadoghq.com/blog/auto-smoother-asap/)
