> For the complete documentation index, see [llms.txt](https://docs.telm.ai/telmai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.telm.ai/telmai/profiling-data/data-health-metrics.md). Agents can also search and read this documentation through its [MCP server](https://docs.telm.ai/telmai/~gitbook/mcp).

# Data Health Metrics

Telmai automatically calculates a comprehensive set of health metrics to monitor your data. These metrics include:

| Column               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *Total Record Count* | The total size of the monitored table. Only available for database assets that scan **New records only**. Otherwise it is N/A.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| *Record Count*       | The number of records scanned: the new records when the asset scans **New records only**, otherwise the whole dataset.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| *Completeness*       | <p>Percentage of non-null/missing/placeholder values, tracked at both the data source and attribute levels:</p><ul><li>Attribute level: Percentage of records where the attribute is not null, empty, or a placeholder (e.g., N/A)</li><li>Data Source level: Compounded average of attribute-level completeness within a data source</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                         |
| *Correctness*        | <p>The share of record IDs that pass <strong>all</strong> of the asset's row checks (Row quality checks and SQL row checks) in a scan. If no row checks are set up, Correctness is 100%. See <a href="#pass-rate-correctness-and-validity">Pass rate, Correctness and Validity</a>.</p><p>Correctness needs ID attributes. When the ID attributes aren't unique, one ID can stand for several records, so Profiling marks Correctness as <strong>May be inaccurate</strong>.</p>                                                                                                                                                                                                                                                                                        |
| *Freshness*          | Freshness is tracked at the table level, based on the time since the table was last updated. Not computed for generic JDBC sources (e.g., Trino) or cloud storage assets (S3, GCS, Azure, OneLake). For Firebolt and Redshift a timestamp attribute must be configured.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| *Uniqueness*         | <p>Uniqueness of the records based on an ID attribute. The KPI measures the ratio of records with unique id versus the total number of records. For example, if out of 10 records, there are 2 records sharing the same value the uniqueness is 80%.</p><p>Set ID attributes in the asset's <strong>Settings</strong> tab, under <strong>Records</strong>. If no ID attribute is set, this KPI is N/A.</p>                                                                                                                                                                                                                                                                                                                                                              |
| *Accuracy*           | <p>The accuracy of the values is determined through analysis of historical data. It detects discrepancies when current values deviate from predictions.<br><br>For example, if the revenue for the company Acme Inc was slowly growing from $4M to $5M over the past year, but in today’s observation it’s 20M, then such a value is considered inaccurate. Accuracy is only calculated for attributes that have “Custom Metrics” Configured, otherwise, the default is 100%.</p><ul><li>Attribute level: Ratio of dimensions with no drift detected to the total number of dimensions. If multiple custom metrics are defined, the minimum accuracy is used.</li><li>Data Source level: Compounded average of attribute-level accuracy within a data source.</li></ul> |

## Pass rate, Correctness and Validity

These three numbers all come from row checks, at different levels:

| Measure     | Covers                  | Where you see it                                                                                         | How it's calculated                                                      |
| ----------- | ----------------------- | -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Pass rate   | One row check, one scan | The monitor, its alerts and incidents, and **Reports** > **Row checks** (**% passed**)                   | Rows that pass the check ÷ rows checked                                  |
| Correctness | One asset, one scan     | **Profiling** > **Stats** > **Scan stats**                                                               | Record IDs that pass every row check ÷ record IDs                        |
| Validity    | Assets over time        | **Home** and the [Data Quality Score](https://docs.telm.ai/telmai/monitoring-data/data-quality-score.md) | The minimum pass rate: the lowest pass rate among the asset's row checks |

Correctness isn't an average of pass rates. A record that fails any one check counts against it. For example, if one check fails rows 1–10 and another fails rows 11–20 of 1,000 records, each check has a 99% pass rate, so Validity is 99%, but Correctness is 98%.

You set alerts on a row check's **pass rate** in the monitor builder, under **When is the pass rate unacceptable?**. See [Creating a Monitor](https://docs.telm.ai/telmai/monitoring-data/monitors-management/creating-a-monitor.md). The built-in **DQ Rules Violation** monitor watches Correctness for the whole asset; see [Out-of-box Monitors](https://docs.telm.ai/telmai/monitoring-data/out-of-box-monitors.md).

These metrics can be found in different places across the application, depending on the scope you’re looking at. When an asset is set to [scan metadata only](#lightweight-scans), only a subset of these metrics are measured based on the source type.

### Metadata-only scans <a href="#lightweight-scans" id="lightweight-scans"></a>

Telmai can scan a table's metadata instead of loading its records. A metadata-only scan runs queries in your database to measure:

* the schema;
* **Record Count**, and **Total Record Count** when the asset scans **New records only**;
* **Completeness** of each attribute;
* **Freshness** of the table, where the source supports it.

This keeps an eye on the table's health, and can still alert on drifts in these metrics, at a fraction of the cost of a full scan. If the asset has SQL-based metrics, their queries still run and are checked against their monitors.

To turn it on, open the asset's **Settings** tab and, under **Scanning** > **Scan depth**, choose **Metadata only**. See [Asset Settings](https://docs.telm.ai/telmai/connect-to-data/configuring-a-data-source.md#scan-depth).

A metadata-only scan doesn't load records, so ID attributes are ignored, Uniqueness and Correctness aren't measured, **Row quality check** and **Custom metric (Expression)** monitors aren't available, and Profiling shows no drilldown values.

{% hint style="info" %}
Metadata-only scans are available for database assets: BigQuery, Snowflake, Databricks, SQL Server, Redshift, Hive Metastore and other JDBC sources. Scan depth isn't shown for assets in a group.
{% endhint %}
