The **Metrics** entity in OpenMetadata allows users to define, track, and manage key business and operational metrics. Metrics help organizations maintain consistency, traceability, and accuracy in data-driven decision-making.
## Overview of Metrics
Metrics represent calculated values based on data assets and are categorized under the **Governance** section in OpenMetadata. Each metric can be linked to glossary terms, data assets, and other metrics, providing comprehensive visibility into data quality and usage.
| **Name** | Unique identifier for the metric, following camelCase naming conventions. | `customerRetentionRate` |
| **Display Name** | Human-readable name for the metric. | `Customer Retention Rate` |
| **Description** | Detailed explanation of what the metric represents. | `Percentage of retained users` |
| **Expression** | Formula or SQL query used to calculate the metric. | `COUNT(returning_customers)` |
| **Granularity** | Time scale for the metric, such as daily, weekly, or monthly. | `Daily` |
| **Metric Type** | Type of calculation applied to the metric (e.g., count, average, ratio). | `Percentage` |
| **Unit of Measurement** | Unit for interpreting metric values, such as count, dollars, or percentage. | `Percentage` |
| **SQL Query** | Optional SQL query defining the metric. | `SELECT COUNT(*) FROM sales` |
| **Owner** | Individual or team responsible for maintaining the metric. | `Data Governance Team` |
## Metric Lineage and Dependencies
OpenMetadata allows users to trace the source and dependencies of metrics using lineage. This ensures end-to-end traceability from raw data to metric reporting. A typical lineage might look like:
```commandline
Database Table → Metric → Pipeline → Dashboard
```
Users can view associated tables, pipelines, and dashboards to understand how metrics are generated and utilized.
## Creating Metrics Using the UI
To create a new metric in OpenMetadata using the user interface, follow these steps:
### 1. Navigate to the Metrics Section
- Go to **Govern > Metrics** in the OpenMetadata UI.