Skip to content

Understanding DQ Metrics

Interactive Demo

The DQ Metrics notebook reads one run's metrics at every level, loads dq_metrics.json with pandas and exports the same run to OpenTelemetry.

From the results of a run, vowl can work out a set of numbers that describe the quality of your data, such as "how many checks failed" or "what share of rows passed". These are the DQ metrics. vowl calculates them when you ask for them, not during the run. You can get them in two ways:

  • Exporting to OpenTelemetry sends them to your monitoring tool, such as Grafana or Datadog, for dashboards and alerts.
  • Exporting to dq_metrics.json writes them to a file next to the rest of the run's output, for a data warehouse or a notebook. save() writes the file unless you leave "dq_metrics" out of outputs.

Both come from the same calculation. The names, attributes and values are the same in both, so a number on a dashboard always matches the number in the file. This page describes the metrics once for both.

vowl computes the DQ metrics only when you ask for them or save them, and the default save() outputs include them. They attribute failed rows to each table and count its rows, which the basic summary never does. See What each method costs.

The four levels

Every metric is a reading at one of four levels. The level says what one reading covers.

Level One reading per Answers questions like
check Check "How many rows failed email_required_check?"
dimension Schema and dimension "What share of orders rows are complete?"
schema Schema "How many orders rows have any problem?"
run Run "How did last night's run do overall?"

A schema is one table in the contract. A dimension is the kind of quality a check measures, such as completeness or consistency. A check with no dimension is put under unknown.

Only the check level has the check's scalar count, the number the check itself reports. The dimension, schema and run levels count attributed rows only. These levels combine several checks, and a row that fails two checks is still one bad row. A scalar count is just a number, so it cannot say which rows failed or which ones two checks share. Attributed rows can, because they are actual rows of the table.

Metric names

Every metric is named vowl.<level>.<unit>.<measure>:

  • level is check, dimension, schema or run.
  • unit is what is counted: check, row or schema.
  • measure is count or pass_rate. Timings are duration. The check level also has scalar_count and scalar_pass_rate, which use the check's scalar count (see How rows are counted). Every level with row counts also has row.approximate, which says whether they could be off (see Approximate row counts).

So vowl.schema.row.pass_rate is "at schema level, the share of rows that passed", and vowl.check.check.count is "at check level, the number of checks". Every name follows the pattern, so you can build one from its parts.

The prefix option of export_otel replaces vowl at the start of every name.

All metrics

Level Check count Check pass rate Row count Row pass rate Row approximate Other
check vowl.check.check.count vowl.check.row.count vowl.check.row.pass_rate vowl.check.row.approximate vowl.check.row.scalar_count, vowl.check.row.scalar_pass_rate, vowl.check.duration
dimension vowl.dimension.check.count vowl.dimension.check.pass_rate vowl.dimension.row.count vowl.dimension.row.pass_rate vowl.dimension.row.approximate
schema vowl.schema.check.count vowl.schema.check.pass_rate vowl.schema.row.count vowl.schema.row.pass_rate vowl.schema.row.approximate
run vowl.run.check.count vowl.run.check.pass_rate vowl.run.row.count vowl.run.row.pass_rate vowl.run.row.approximate vowl.run.schema.count, vowl.run.duration

There is no check pass rate at check level. For one check it would always be 0 or 1, which vowl.check.check.count already says.

Statuses

A count is split into parts by its status attribute. Add the parts to get the total. Which statuses a count has depends on the unit in its name, vowl.<level>.<unit>.<measure>: check, row or schema.

Example

The examples below use the orders table from the worked example: 100 rows and 5 checks.

Rows: PASSED or FAILED

A row is FAILED if it has a problem, and PASSED if it has none. A row with several problems is still one failed row. Which checks count towards the row numbers is explained in How rows are counted.

Example

In orders, 5 rows have no email, so email_required_check reports 5 failed rows:

vowl.check.row.count:  95  {status="PASSED", check_name="email_required_check"}
vowl.check.row.count:  5   {status="FAILED", check_name="email_required_check"}

Another 3 rows have a duplicate order_id. One of them also has no email, so it has two problems. At schema level each row is counted once, so 7 rows of orders failed, not 8:

vowl.schema.row.count:  93  {status="PASSED", schema_name="orders"}
vowl.schema.row.count:  7   {status="FAILED", schema_name="orders"}

Checks: PASSED, FAILED or ERROR

FAILED means the check ran and found bad data. ERROR means the check could not run, for example because its query names a column that does not exist.

Example

3 of the 5 checks on orders pass and 2 find bad data:

vowl.schema.check.count:  3  {status="PASSED", schema_name="orders"}
vowl.schema.check.count:  2  {status="FAILED", schema_name="orders"}
vowl.schema.check.count:  0  {status="ERROR",  schema_name="orders"}

Schemas: PASSED, FAILED or ERROR

A schema is FAILED when any of its checks failed. Otherwise it is ERROR when any of its checks could not run. Otherwise it is PASSED. A table with both a failed check and a check that could not run is FAILED, because a known data problem outranks a check that could not say.

Example

A run covers three tables. customers passes everything, orders has a failed check and refunds has a check that could not run:

vowl.run.schema.count:  1  {status="PASSED"}
vowl.run.schema.count:  1  {status="FAILED"}
vowl.run.schema.count:  1  {status="ERROR"}

Working with the numbers

Pass rates

A pass rate is a share from 0 to 1.

  • A check pass rate is PASSED / (PASSED + FAILED + ERROR). A check that could not run (ERROR) stays in the total and lowers the rate, just like a FAILED check. It did not show that the data is good. If there are no checks, the rate is missing instead of 0.
  • A row pass rate is passed rows over all rows in the table.

For example, 10 checks end as 6 PASSED, 2 FAILED and 2 ERROR. The check pass rate is 6 / 10 = 0.6. If vowl left the errors out, it would be 6 / 8 = 0.75, and the run would look healthier than it is.

Zeros and missing values

A count always sends every status, even when it is 0. A clean run sends FAILED as 0 instead of sending nothing, so a dashboard never keeps showing the failures of an earlier run.

A pass rate is different. It is left out when there is nothing to divide by, for example a schema with no checks or an empty table. A missing rate means "no rate", not 100%.

Which numbers add up

Numbers can add up in two directions: across levels within one run, and across runs over time.

Across levels

Each check belongs to exactly one dimension and one schema, so check counts always add up from one level to the next. Rows are different. One row can fail several checks, so it can show up once per check or dimension it fails.

From, to Checks Rows
Check to dimension Yes No. A row can fail several checks in one dimension.
Dimension to schema Yes No. A row can fail checks in several dimensions.
Schema to run Yes Yes. Each table has different rows.

The run level is there for convenience. You could add up the schema levels yourself, but you do not have to.

Across runs

Check counts add up across runs. Adding vowl.run.check.count with status = "FAILED" over a week gives the checks that failed that week.

A row count is a reading of one table in one run. Adding readings across runs only makes sense when each run checks new rows, such as a daily load of new records. When each run checks the whole table again, the same rows are counted every run.

To get a pass rate over a week, add up PASSED and FAILED over the week and divide, rather than averaging the daily rates. That way a small run counts for less than a large one.

Metric types

Whether a number adds up across runs decides its metric type:

  • Counters hold numbers that add up: every check.count and vowl.run.schema.count.
  • Gauges hold readings of one run, like a thermometer: every row.count, vowl.check.row.scalar_count, every pass_rate and every row.approximate.
  • Histograms hold timings: vowl.check.duration and vowl.run.duration, in milliseconds.

How rows are counted

vowl has two numbers for the rows a check failed:

  • Scalar count: the number the check reports, such as the result of SELECT COUNT(*) FROM orders WHERE email IS NULL. It decides whether the check passes. Every row-level check has one, but it is not always the number of rows that failed. A DISTINCT lowers it, a join can raise it, and COUNT(DISTINCT x) counts values instead of rows.
  • Attributed rows: the rows of the table that failed the check. vowl finds them by matching the check's failed rows back to the table. Only attributable checks have them.

Every level counts attributed rows:

Metric Counts FAILED can be
row.count and row.pass_rate, at every level Attributed rows, each row counted once 0 up to the table's rows
vowl.check.row.scalar_count and vowl.check.row.scalar_pass_rate The scalar count of one check More than the table's rows

PASSED is the table's rows minus FAILED. So when a scalar count is higher than the table's rows, its PASSED and scalar_pass_rate are negative. vowl reports them as they are, so the overcount stays visible.

What the scalar count is for

The scalar count decides whether the check passes, so it always agrees with the check's status. Use vowl.check.row.scalar_count to see the number the check itself reported, for example to compare it with the check's limit. Use vowl.check.row.count to see how many rows of the table failed.

The two differ when the check changes the rows it returns. A DISTINCT lowers the scalar count. A join that returns one row twice raises it.

A check's attributed rows are also in the attributed_rows column of get_dq_metrics_df(by="check") and the row.count.failed attribute of its vowl.check span.

For the details, see Attributed rows and Checks can change the rows they return.

Which checks have row counts

Only row-level checks have row counts. A check that is not row-level, such as an average, has check counts only.

Check scalar_count row.count at check level row.approximate at check level
Failed, attributable Yes Its attributed rows Yes
Passed Yes FAILED is 0, or its attributed rows with fetch_tolerated_rows=True Yes
Failed, not attributable Yes None Yes
Ended in ERROR No None No

A passed check follows the same rule as tolerated rows. By default it adds no rows, so its FAILED is 0. With fetch_tolerated_rows=True, its attributed rows count at every level.

At dimension, schema and run level, only attributed rows are counted. A dimension or schema with no attributable row-level check has no row counts.

Approximate row counts

Some row counts may be off. For example, a check that ended in ERROR may hide failed rows, and the rows of a check that is not attributable are left out. See the approximate flag for every cause.

Each level with row counts has a row.approximate gauge that says so. It is 1 when the row counts could be off and 0 when they are exact. It has the same attributes as that level's row.pass_rate, so it lines up with the row counts it describes.

Metric 1 means
vowl.run.row.approximate Some row count of the run could be off
vowl.schema.row.approximate The schema's row counts could be off
vowl.dimension.row.approximate The dimension's row counts could be off
vowl.check.row.approximate This check made its schema's row counts approximate

The check level reads differently from the others. It says whether this check is a cause, not whether its own count is off. So it is sent for every check with a row.scalar_count, including a check that is not attributable and so has no row.count. That is the usual cause.

To find out why, look at the check's vowl.check span: it carries the same flag as row.approximate, and row.attribution_note says why. Without traces, the approximate and attribution_note columns of get_dq_metrics_df(by="check") give the same answer.

A row-level check that ended in ERROR is the exception. It has no scalar count, so it gets no vowl.check.row.approximate gauge and no row.* attributes on its span. It still makes its schema's row counts approximate. Only get_dq_metrics_df(by="check") shows it as the cause, with approximate set to True and the note check ended in ERROR.

Why the flag is its own metric, not an attribute

A metric's attributes decide which series a reading belongs to. If approximate were an attribute of row.count, the row count would start a new series each time the flag flipped between runs, and a dashboard or alert would see two broken lines instead of one. The flag describes the count, not the table, so it is a gauge of its own. This follows the Prometheus advice to avoid labels that can be removed without changing what a series measures.

Attributes

Each reading carries attributes that say what it is for. All levels also carry the run identity attributes, such as vowl.contract.id.

MetricAttributes
Check levelOne reading per check.
vowl.check.check.countstatus, check_name, schema_name, target, dimension, severity, engine
vowl.check.row.countstatus, check_name, schema_name, target, dimension, severity, engine
vowl.check.row.pass_ratecheck_name, schema_name, target, dimension, severity, engine
vowl.check.row.approximatecheck_name, schema_name, target, dimension, severity, engine
vowl.check.row.scalar_countstatus, check_name, schema_name, target, dimension, severity, engine
vowl.check.row.scalar_pass_ratecheck_name, schema_name, target, dimension, severity, engine
vowl.check.durationcheck_name, schema_name, target, dimension, severity, engine
Dimension levelOne reading per schema and dimension.
vowl.dimension.check.countstatus, schema_name, dimension
vowl.dimension.check.pass_rateschema_name, dimension
vowl.dimension.row.countstatus, schema_name, dimension
vowl.dimension.row.pass_rateschema_name, dimension
vowl.dimension.row.approximateschema_name, dimension
Schema levelOne reading per schema.
vowl.schema.check.countstatus, schema_name
vowl.schema.check.pass_rateschema_name
vowl.schema.row.countstatus, schema_name
vowl.schema.row.pass_rateschema_name
vowl.schema.row.approximateschema_name
Run levelOne reading per run.
vowl.run.schema.countstatus
vowl.run.check.countstatus
vowl.run.check.pass_ratenone
vowl.run.row.countstatus
vowl.run.row.pass_ratenone
vowl.run.row.approximatenone
vowl.run.durationnone

Every check-level metric carries the same attributes, apart from status on the counts, so you can filter and join them the same way. severity is left out when the contract does not set one. The traces and logs carry the same numbers under the same names, without the level.

How a check is identified

A check is identified by three attributes, the same three as in check_results.csv:

Attribute Example What it is
schema_name orders The schema the check belongs to.
target orders.amount <schema>.<column>, or <schema> for a schema-level check.
check_name amount_gt_0 The check's name.

So a check named not_null on orders.amount and one on orders.email are two series, and neither is merged with a schema-level not_null on orders. The contract makes sure no two checks share all three. See Check names.

target is used instead of a separate column attribute because every check has one, so schema-level checks have a value to filter on rather than a missing label. It is also the value you see in check_results.csv. Use it as a whole value: schema and column names can contain dots, so do not split it. Filter on schema_name for a schema, and on target for one column or one schema's own checks.

get_dq_metrics_df(by="check") has the same three columns, so it joins with get_check_results_df() on schema_name, target and check_name.

Which check fields are attributes

Metric attributes only hold fields that tell checks apart and stay the same from run to run. Each distinct value starts a new series in your monitoring tool, so a field that changes every run, or has many values, would make thousands of series. The traces and logs carry more, because each span or log record is one check in one run.

Field Metric attribute Span and log attribute Why
check_name, schema_name, target Yes Yes They identify the check.
dimension Yes Yes A small, fixed set, useful to group by.
severity Yes, when set Yes, when set From the contract, and useful for alerting. It is also a check_results.csv column.
engine Yes Yes A small set, such as sql.
status On counts only Yes The counts are split by status.
check_path No Yes Unique within a contract, but it changes when you reorder the contract, which would start new series.
tables_in_query No Yes A list.
operator, expected_value, actual_value, query, the definition No Yes Values and free text, too many to be labels.
failed_rows_count, message No Counts and log body These are the readings themselves.
is_generated, aggregation_type, logical_type No As check.definition.* They describe the check rather than tell checks apart. The flattened check definition on spans and logs carries them.

check_results.csv has no type or description column. Earlier versions listed them, but no check ever filled them. The check's type is in check_definition, and its description is the result's details, shown in the report.

The run ID

Every run gets an ID when it runs, a new UUID in result.run_id. dq_metrics.json and the OpenTelemetry traces and logs all carry it as vowl.run.id, so you can go from a dashboard to the saved files of the same run. To use your own ID, such as your orchestrator's run ID, set it before saving or exporting:

result = validate_data("contract.yaml", df=df)
result.run_id = "nightly-2026-09-30"

Worked example

A contract has two schemas:

  • orders has 100 rows. email_required_check (completeness) fails on 5 rows and order_id_unique_check (consistency) fails on 3 rows. One row has both a missing email and a duplicate order_id. order_id_required_check (completeness) passes.
  • refunds has 20 rows. refund_positive (consistency) fails on 2 rows.

vowl also generates a <column>_column_exists_check (conformity) for each of the 3 columns in the contract, and they all pass. So the run has 7 checks: 4 passed and 3 failed. The numbers below are the real output of this run.

To keep it short, the check counts leave out statuses with a count of 0 (for example status="ERROR"), and every reading leaves out the durations and the run identity attributes. The check lines show only the attributes that tell them apart. Every other reading the run sends is shown.

# Check level: each check on its own
vowl.check.check.count:    1     {status="PASSED", schema_name="orders",  check_name="order_id_column_exists_check"}
vowl.check.check.count:    1     {status="PASSED", schema_name="orders",  check_name="order_id_required_check"}
vowl.check.check.count:    1     {status="FAILED", schema_name="orders",  check_name="order_id_unique_check"}
vowl.check.check.count:    1     {status="PASSED", schema_name="orders",  check_name="email_column_exists_check"}
vowl.check.check.count:    1     {status="FAILED", schema_name="orders",  check_name="email_required_check"}
vowl.check.check.count:    1     {status="PASSED", schema_name="refunds", check_name="amount_column_exists_check"}
vowl.check.check.count:    1     {status="FAILED", schema_name="refunds", check_name="refund_positive"}
vowl.check.row.count:      100   {status="PASSED", check_name="order_id_column_exists_check"}
vowl.check.row.count:      0     {status="FAILED", check_name="order_id_column_exists_check"}
vowl.check.row.count:      100   {status="PASSED", check_name="order_id_required_check"}
vowl.check.row.count:      0     {status="FAILED", check_name="order_id_required_check"}
vowl.check.row.count:      97    {status="PASSED", check_name="order_id_unique_check"}
vowl.check.row.count:      3     {status="FAILED", check_name="order_id_unique_check"}
vowl.check.row.count:      100   {status="PASSED", check_name="email_column_exists_check"}
vowl.check.row.count:      0     {status="FAILED", check_name="email_column_exists_check"}
vowl.check.row.count:      95    {status="PASSED", check_name="email_required_check"}
vowl.check.row.count:      5     {status="FAILED", check_name="email_required_check"}
vowl.check.row.count:      20    {status="PASSED", check_name="amount_column_exists_check"}
vowl.check.row.count:      0     {status="FAILED", check_name="amount_column_exists_check"}
vowl.check.row.count:      18    {status="PASSED", check_name="refund_positive"}
vowl.check.row.count:      2     {status="FAILED", check_name="refund_positive"}
vowl.check.row.pass_rate:  1.0   {check_name="order_id_column_exists_check"}
vowl.check.row.pass_rate:  1.0   {check_name="order_id_required_check"}
vowl.check.row.pass_rate:  0.97  {check_name="order_id_unique_check"}
vowl.check.row.pass_rate:  1.0   {check_name="email_column_exists_check"}
vowl.check.row.pass_rate:  0.95  {check_name="email_required_check"}
vowl.check.row.pass_rate:  1.0   {check_name="amount_column_exists_check"}
vowl.check.row.pass_rate:  0.9   {check_name="refund_positive"}
vowl.check.row.scalar_count:      100   {status="PASSED", check_name="order_id_column_exists_check"}
vowl.check.row.scalar_count:      0     {status="FAILED", check_name="order_id_column_exists_check"}
vowl.check.row.scalar_count:      100   {status="PASSED", check_name="order_id_required_check"}
vowl.check.row.scalar_count:      0     {status="FAILED", check_name="order_id_required_check"}
vowl.check.row.scalar_count:      97    {status="PASSED", check_name="order_id_unique_check"}
vowl.check.row.scalar_count:      3     {status="FAILED", check_name="order_id_unique_check"}
vowl.check.row.scalar_count:      100   {status="PASSED", check_name="email_column_exists_check"}
vowl.check.row.scalar_count:      0     {status="FAILED", check_name="email_column_exists_check"}
vowl.check.row.scalar_count:      95    {status="PASSED", check_name="email_required_check"}
vowl.check.row.scalar_count:      5     {status="FAILED", check_name="email_required_check"}
vowl.check.row.scalar_count:      20    {status="PASSED", check_name="amount_column_exists_check"}
vowl.check.row.scalar_count:      0     {status="FAILED", check_name="amount_column_exists_check"}
vowl.check.row.scalar_count:      18    {status="PASSED", check_name="refund_positive"}
vowl.check.row.scalar_count:      2     {status="FAILED", check_name="refund_positive"}
vowl.check.row.scalar_pass_rate:  1.0   {check_name="order_id_column_exists_check"}
vowl.check.row.scalar_pass_rate:  1.0   {check_name="order_id_required_check"}
vowl.check.row.scalar_pass_rate:  0.97  {check_name="order_id_unique_check"}
vowl.check.row.scalar_pass_rate:  1.0   {check_name="email_column_exists_check"}
vowl.check.row.scalar_pass_rate:  0.95  {check_name="email_required_check"}
vowl.check.row.scalar_pass_rate:  1.0   {check_name="amount_column_exists_check"}
vowl.check.row.scalar_pass_rate:  0.9   {check_name="refund_positive"}
vowl.check.row.approximate:       0     {check_name="order_id_column_exists_check"}
vowl.check.row.approximate:       0     {check_name="order_id_required_check"}
vowl.check.row.approximate:       0     {check_name="order_id_unique_check"}
vowl.check.row.approximate:       0     {check_name="email_column_exists_check"}
vowl.check.row.approximate:       0     {check_name="email_required_check"}
vowl.check.row.approximate:       0     {check_name="amount_column_exists_check"}
vowl.check.row.approximate:       0     {check_name="refund_positive"}

# Dimension level: each row once per dimension
vowl.dimension.check.count:      2     {status="PASSED", schema_name="orders",  dimension="conformity"}
vowl.dimension.check.count:      1     {status="PASSED", schema_name="orders",  dimension="completeness"}
vowl.dimension.check.count:      1     {status="FAILED", schema_name="orders",  dimension="completeness"}
vowl.dimension.check.count:      1     {status="FAILED", schema_name="orders",  dimension="consistency"}
vowl.dimension.check.count:      1     {status="PASSED", schema_name="refunds", dimension="conformity"}
vowl.dimension.check.count:      1     {status="FAILED", schema_name="refunds", dimension="consistency"}
vowl.dimension.check.pass_rate:  1.0   {schema_name="orders",  dimension="conformity"}
vowl.dimension.check.pass_rate:  0.5   {schema_name="orders",  dimension="completeness"}
vowl.dimension.check.pass_rate:  0.0   {schema_name="orders",  dimension="consistency"}
vowl.dimension.check.pass_rate:  1.0   {schema_name="refunds", dimension="conformity"}
vowl.dimension.check.pass_rate:  0.0   {schema_name="refunds", dimension="consistency"}
vowl.dimension.row.count:        95    {status="PASSED", schema_name="orders",  dimension="completeness"}
vowl.dimension.row.count:        5     {status="FAILED", schema_name="orders",  dimension="completeness"}
vowl.dimension.row.count:        100   {status="PASSED", schema_name="orders",  dimension="conformity"}
vowl.dimension.row.count:        0     {status="FAILED", schema_name="orders",  dimension="conformity"}
vowl.dimension.row.count:        97    {status="PASSED", schema_name="orders",  dimension="consistency"}
vowl.dimension.row.count:        3     {status="FAILED", schema_name="orders",  dimension="consistency"}
vowl.dimension.row.count:        20    {status="PASSED", schema_name="refunds", dimension="conformity"}
vowl.dimension.row.count:        0     {status="FAILED", schema_name="refunds", dimension="conformity"}
vowl.dimension.row.count:        18    {status="PASSED", schema_name="refunds", dimension="consistency"}
vowl.dimension.row.count:        2     {status="FAILED", schema_name="refunds", dimension="consistency"}
vowl.dimension.row.pass_rate:    0.95  {schema_name="orders",  dimension="completeness"}
vowl.dimension.row.pass_rate:    1.0   {schema_name="orders",  dimension="conformity"}
vowl.dimension.row.pass_rate:    0.97  {schema_name="orders",  dimension="consistency"}
vowl.dimension.row.pass_rate:    1.0   {schema_name="refunds", dimension="conformity"}
vowl.dimension.row.pass_rate:    0.9   {schema_name="refunds", dimension="consistency"}
vowl.dimension.row.approximate:  0     {schema_name="orders",  dimension="completeness"}
vowl.dimension.row.approximate:  0     {schema_name="orders",  dimension="conformity"}
vowl.dimension.row.approximate:  0     {schema_name="orders",  dimension="consistency"}
vowl.dimension.row.approximate:  0     {schema_name="refunds", dimension="conformity"}
vowl.dimension.row.approximate:  0     {schema_name="refunds", dimension="consistency"}

# Schema level: each row once
# 7 rows of orders failed, not 5 + 3 = 8, because 1 row failed in both dimensions
vowl.schema.check.count:      3      {status="PASSED", schema_name="orders"}
vowl.schema.check.count:      2      {status="FAILED", schema_name="orders"}
vowl.schema.check.count:      1      {status="PASSED", schema_name="refunds"}
vowl.schema.check.count:      1      {status="FAILED", schema_name="refunds"}
vowl.schema.check.pass_rate:  0.6    {schema_name="orders"}
vowl.schema.check.pass_rate:  0.5    {schema_name="refunds"}
vowl.schema.row.count:        93     {status="PASSED", schema_name="orders"}
vowl.schema.row.count:        7      {status="FAILED", schema_name="orders"}
vowl.schema.row.count:        18     {status="PASSED", schema_name="refunds"}
vowl.schema.row.count:        2      {status="FAILED", schema_name="refunds"}
vowl.schema.row.pass_rate:    0.93   {schema_name="orders"}
vowl.schema.row.pass_rate:    0.9    {schema_name="refunds"}
vowl.schema.row.approximate:  0      {schema_name="orders"}
vowl.schema.row.approximate:  0      {schema_name="refunds"}

# Run level: the schemas added up
# 9 rows failed = 7 + 2, because the two tables hold different rows
vowl.run.schema.count:      2      {status="FAILED"}
vowl.run.check.count:       4      {status="PASSED"}
vowl.run.check.count:       3      {status="FAILED"}
vowl.run.check.pass_rate:   0.571  {}
vowl.run.row.count:         111    {status="PASSED"}
vowl.run.row.count:         9      {status="FAILED"}
vowl.run.row.pass_rate:     0.925  {}
vowl.run.row.approximate:   0      {}

Every level has 7 checks in total, because check counts add up. Rows do not add up until the run level: 5 + 3 failed rows at dimension level become 7 at schema level for orders, and the run level adds orders and refunds. Exporting to dq_metrics.json shows the same run as it appears in the file.