Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

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:

YAML
telemetry:
  metrics:
    provider: datadog
    settings:
      namespace: "transfer."
      addr: "127.0.0.1:8125"
      sampling: 1
      tags:
        - env:production

Each key under settings is optional.

SettingDefaultDescription
namespacetransfer.Prefix of every metric name. It is shown as * in the metric names on this page.
addr127.0.0.1:8125Address of the Datadog agent. TELEMETRY_HOST and TELEMETRY_PORT replace it when both are set.
sampling1Sample rate, greater than 0 and at most 1. Transfer uses 1 for any other value.
tagsNoneList 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.

NameDescriptionUnitTags
*.row.lagDifference between the Kafka partition’s high watermark and the offset of the current message.Messagesgroupid, schema, table, mode
*.ingestion.lag.95percentilep95 of the time from when a message was published to when Transfer finished processing it.

Since Transfer 1.4.6
msgroupid, schema, table, mode
*.ingestion.lag.avgAverage of the time from when a message was published to when Transfer finished processing it.

Since Transfer 1.4.6
msgroupid, schema, table, mode
*.ingestion.lag.maxMaximum of the time from when a message was published to when Transfer finished processing it.

Since Transfer 1.4.6
msgroupid, schema, table, mode
*.ingestion.lag.medianMedian of the time from when a message was published to when Transfer finished processing it.

Since Transfer 1.4.6
msgroupid, schema, table, mode
*.ingestion.lag.countNumber of messages that ingestion lag was measured for.

Since Transfer 1.4.6
Countgroupid, schema, table, mode
*.process.message.countNumber of rows Transfer has processed.Countdatabase, schema, table, groupid, op, what, skipped, mode
*.process.message.95percentilep95 of the time Transfer takes to process a row.msdatabase, schema, table, groupid, op, what, skipped, mode
*.process.message.avgAverage of the time Transfer takes to process a row.msdatabase, schema, table, groupid, op, what, skipped, mode
*.process.message.maxMaximum of the time Transfer takes to process a row.msdatabase, schema, table, groupid, op, what, skipped, mode
*.process.message.medianMedian of the time Transfer takes to process a row.msdatabase, schema, table, groupid, op, what, skipped, mode
*.flush.countNumber of table flushes Transfer has run.Countdatabase, schema, table, what, reason, mode
*.flush.95percentilep95 of the time a table flush takes.msdatabase, schema, table, what, reason, mode
*.flush.avgAverage of the time a table flush takes.msdatabase, schema, table, what, reason, mode
*.flush.maxMaximum of the time a table flush takes.msdatabase, schema, table, what, reason, mode
*.flush.medianMedian of the time a table flush takes.msdatabase, schema, table, what, reason, mode

How Transfer measures each metric:

  • *.row.lag is sampled at a rate of 0.5, whatever sampling is set to.
  • *.row.lag and *.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_FLUSH and TRANSFER_PIPELINED_STAGING are both true in Transfer’s environment.
  • The destination is Databricks.
  • enableTopicRecovery is 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.

TagValues
groupidThe Kafka consumer group ID. Transfer sends the key as groupID, and Datadog lowercases tag keys.
databaseThe db value of the topic in the Transfer config.
schemaThe schema value of the topic in the Transfer config.
tableThe table the row belongs to.
modereplication or history.
opc (create), u (update), d (delete) or r (backfill).
skippedyes on rows that Transfer skips because of the topic’s skippedOperations. The tag is not set on other rows.
reasonrows, received_rows, size, memory, time or s3 object.
whatsuccess, 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.

Metricwhat 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?