> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Available metrics

> Metrics that Artie Transfer emits over StatsD, and where to find the metrics Artie exports to your observability integrations.

## Who these metrics are for

Artie Transfer emits the metrics on this page over StatsD to Datadog. Metric names start with the configured namespace, which defaults to `transfer.` and is shown as `*` below. Use these metrics if you self-host Transfer.

If Artie runs your pipelines, connect a [monitoring integration](/docs/monitoring/integrations) instead. The Datadog and OpenTelemetry integrations don't send the metrics on this page. They send six pipeline metrics, such as `artie.rows_processed` and `artie.ingestion_lag_ms`, which are listed under [Exported metrics](/docs/monitoring/integrations#exported-metrics).

## Metrics

| Name                             | Description                                                                                                                                                                 | Unit     | Tags                                                                      |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------- |
| `*.row.lag`                      | Difference between Kafka's high watermark (which is at the partition level) and the current message offset.                                                                 | Messages | `groupid`, `schema`, `table`, `mode`                                      |
| `*.ingestion.lag.95percentile`   | p95 of time lag from Kafka message was published and received. <br /><br /> Since Transfer `1.4.6`                                                                          | `ms`     | `groupid`, `schema`, `table`, `mode`                                      |
| `*.ingestion.lag.avg`            | Avg of time lag from Kafka message was published and received. <br /><br /> Since Transfer `1.4.6` <br /><br /> If self-hosting Transfer, this is a good metric to monitor. | `ms`     | `groupid`, `schema`, `table`, `mode`                                      |
| `*.ingestion.lag.max`            | max lag from Kafka message was published and received. <br /><br /> Since Transfer `1.4.6`                                                                                  | `ms`     | `groupid`, `schema`, `table`, `mode`                                      |
| `*.ingestion.lag.median`         | Median lag from Kafka message was published and received. <br /><br /> Since Transfer `1.4.6`                                                                               | `ms`     | `groupid`, `schema`, `table`, `mode`                                      |
| `*.ingestion.lag.count`          | How many messages the ingestion lag was measured for. <br /><br /> Since Transfer `1.4.6`                                                                                   | Count    | `groupid`, `schema`, `table`, `mode`                                      |
| `*.process.message.count`        | How many rows has Transfer processed.                                                                                                                                       | Count    | `database`, `schema`, `table`, `groupid`, `op`, `what`, `skipped`, `mode` |
| `*.process.message.95percentile` | p95 of how long each row process takes.                                                                                                                                     | `ms`     | `database`, `schema`, `table`, `groupid`, `op`, `what`, `skipped`, `mode` |
| `*.process.message.avg`          | Average of how long each row process takes.                                                                                                                                 | `ms`     | `database`, `schema`, `table`, `groupid`, `op`, `what`, `skipped`, `mode` |
| `*.process.message.max`          | Max of how long each row process takes.                                                                                                                                     | `ms`     | `database`, `schema`, `table`, `groupid`, `op`, `what`, `skipped`, `mode` |
| `*.process.message.median`       | Median of how long each row process takes.                                                                                                                                  | `ms`     | `database`, `schema`, `table`, `groupid`, `op`, `what`, `skipped`, `mode` |
| `*.flush.count`                  | How many flush operations have been performed.                                                                                                                              | Count    | `database`, `schema`, `table`, `what`, `reason`, `mode`                   |
| `*.flush.95percentile`           | p95 of how long each flush process takes.                                                                                                                                   | `ms`     | `database`, `schema`, `table`, `what`, `reason`, `mode`                   |
| `*.flush.avg`                    | Avg of how long each flush process takes.                                                                                                                                   | `ms`     | `database`, `schema`, `table`, `what`, `reason`, `mode`                   |
| `*.flush.max`                    | Max of how long each flush process takes.                                                                                                                                   | `ms`     | `database`, `schema`, `table`, `what`, `reason`, `mode`                   |
| `*.flush.median`                 | Median of how long each flush process takes.                                                                                                                                | `ms`     | `database`, `schema`, `table`, `what`, `reason`, `mode`                   |
| `*.row.execution_time_lag`       | Time between when the row changed in the source database and when Transfer processed it. <br /><br /> Only emitted when `reporting.emitExecutionTime` is `true`.            | `ms`     | `schema`, `table`, `mode`                                                 |

If `reporting.emitDBExecutionTime` is `true`, a flush triggered by an incoming row reports the flush timing stats (`*.flush.95percentile`, `*.flush.avg`, `*.flush.max`, and `*.flush.median`) as the time from that row's change in the source database to the end of the flush, not the flush alone. Time-based flushes still report the flush duration.

The `skipped` tag is only set, to `yes`, on rows that Transfer skips because of the topic's skipped operations. A row that fails before Transfer parses it may be missing `database`, `schema`, `table`, and `op`.

## The what tag explained

The `what` tag aims to provide a high level of visibility into whether an attempt has succeeded or not. And if it did not succeed, it will provide additional visibility into which particular operation failed (vs just providing a generic error state).

Transfer will provide `what:success` if the attempt succeeded and different reasoning depending on the error state. This way, our monitors and response to failures can be more actionable and we can jump straight to the offending code block.

| Metric                | `what` values                                                                                                                                   |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `*.process.message.*` | `success`, `failed_topic_lookup`, `marshall_pk_err`, `decompress_value_err`, `marshal_value_err`, `to_mem_event_err`, `save_fail`, `flush_fail` |
| `*.flush.*`           | `success`, `merge_fail`                                                                                                                         |

![Visualization of the what tag](/docs/assets/telemetry_what_tag.png)