Monitoring
Artie Transfer metrics reference
Every metric Artie Transfer sends to Datadog over StatsD, with its unit, its tags and the values each tag takes.
Who these metrics are for
Use these metrics if you run Artie Transfer yourself. Transfer sends them over StatsD to a Datadog agent.
If Artie runs your pipelines, connect a monitoring integration 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.
Telemetry settings
Transfer sends metrics only when telemetry.metrics.provider is datadog in its config file. This example sets every setting:
telemetry:
metrics:
provider: datadog
settings:
namespace: "transfer."
addr: "127.0.0.1:8125"
sampling: 1
tags:
- env:productionEach key under settings is optional.
| Setting | Default | Description |
|---|---|---|
namespace | transfer. | Prefix of every metric name. It is shown as * in the metric names on this page. |
addr | 127.0.0.1:8125 | Address of the Datadog agent. TELEMETRY_HOST and TELEMETRY_PORT replace it when both are set. |
sampling | 1 | Sample rate, greater than 0 and at most 1. Transfer uses 1 for any other value. |
tags | None | List of key:value tags added to every metric. |
Metrics
Transfer sends *.row.lag as a gauge, and *.ingestion.lag, *.process.message and *.flush as timings. The Datadog agent turns each timing into five series: .count, .avg, .median, .max and .95percentile. These are the agent’s defaults, set by histogram_aggregates and histogram_percentiles in datadog.yaml.
| Name | Description | Unit | Tags |
|---|---|---|---|
*.row.lag | Difference between the Kafka partition’s high watermark and the offset of the current message. | Messages | groupid, schema, table, mode |
*.ingestion.lag.95percentile | p95 of the time from when a message was published to when Transfer finished processing it. Since Transfer 1.4.6 | ms | groupid, schema, table, mode |
*.ingestion.lag.avg | Average of the time from when a message was published to when Transfer finished processing it. Since Transfer 1.4.6 | ms | groupid, schema, table, mode |
*.ingestion.lag.max | Maximum of the time from when a message was published to when Transfer finished processing it. Since Transfer 1.4.6 | ms | groupid, schema, table, mode |
*.ingestion.lag.median | Median of the time from when a message was published to when Transfer finished processing it. Since Transfer 1.4.6 | ms | groupid, schema, table, mode |
*.ingestion.lag.count | Number of messages that ingestion lag was measured for. Since Transfer 1.4.6 | Count | groupid, schema, table, mode |
*.process.message.count | Number of rows Transfer has processed. | Count | database, schema, table, groupid, op, what, skipped, mode |
*.process.message.95percentile | p95 of the time Transfer takes to process a row. | ms | database, schema, table, groupid, op, what, skipped, mode |
*.process.message.avg | Average of the time Transfer takes to process a row. | ms | database, schema, table, groupid, op, what, skipped, mode |
*.process.message.max | Maximum of the time Transfer takes to process a row. | ms | database, schema, table, groupid, op, what, skipped, mode |
*.process.message.median | Median of the time Transfer takes to process a row. | ms | database, schema, table, groupid, op, what, skipped, mode |
*.flush.count | Number of table flushes Transfer has run. | Count | database, schema, table, what, reason, mode |
*.flush.95percentile | p95 of the time a table flush takes. | ms | database, schema, table, what, reason, mode |
*.flush.avg | Average of the time a table flush takes. | ms | database, schema, table, what, reason, mode |
*.flush.max | Maximum of the time a table flush takes. | ms | database, schema, table, what, reason, mode |
*.flush.median | Median of the time a table flush takes. | ms | database, schema, table, what, reason, mode |
How Transfer measures each metric:
*.row.lagis sampled at a rate of 0.5, whateversamplingis set to.*.row.lagand*.ingestion.lag.*are sent only for a message that Transfer processed without an error.*.process.message.*is also sent for messages that fail and for rows that Transfer skips.*.process.message.*includes the flush time when the row triggers a flush that runs in place.*.flush.*is sent once per table per flush, and its time includes retries.- A table with no buffered rows sends no
*.flush.*metric.
Staging and merge timings
Transfer also sends *.flush.stage and *.flush.merge as timings when it stages a batch while the batch before it merges. Both carry the same tags as *.flush.*. Transfer works this way only when all of these hold:
TRANSFER_ASYNC_FLUSHandTRANSFER_PIPELINED_STAGINGare bothtruein Transfer’s environment.- The destination is Databricks.
enableTopicRecoveryis off.- No table in the batch is in history mode, append-only, a dynamic table, or uses multi-step merge.
*.flush.stage times staging a table’s batch, and *.flush.merge times merging it into the destination table. For these batches, *.flush.* reports staging plus merge time, without the wait for the batch before.
Tag values
A row that fails before Transfer parses it may be missing database, schema, table, and op.
| Tag | Values |
|---|---|
groupid | The Kafka consumer group ID. Transfer sends the key as groupID, and Datadog lowercases tag keys. |
database | The db value of the topic in the Transfer config. |
schema | The schema value of the topic in the Transfer config. |
table | The table the row belongs to. |
mode | replication or history. |
op | c (create), u (update), d (delete) or r (backfill). |
skipped | yes on rows that Transfer skips because of the topic’s skippedOperations. The tag is not set on other rows. |
reason | rows, received_rows, size, memory, time or s3 object. |
what | success, or the step that failed. Each value is listed under The what tag explained. |
The what tag explained
Transfer sets what to success when an attempt succeeds. When an attempt fails, what names the operation that failed, so a monitor can alert on one failure type.
| 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 |
*.flush.stage.* | success, stage_fail |
*.flush.merge.* | success, merge_fail |
This Datadog top list sums transfer.flush.count by the what and database tags:
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.