Skip to main content

Metric Dictionary and Alert Recommendations

Metrics are grouped into ingestion, delivery, TMQ, export, and process resources, with meanings, interpretation limits, and alert recommendations for checking monitoring definitions. An existing name does not mean the current task has samples. Differences are not exact backlog or loss counts.

Where to operate: taosExplorer Data Browser or the taos CLI on the monitoring cluster, TDinsight for taosX in Grafana, and taosX /metrics and /metrics/description.

tip

First find the actual monitoring cluster, database, instance, and task as described in Logs and Performance. The names below explain metrics. Not every task produces all fields; a name in the description interface does not justify treating it as zero.

1. Select Objects and Statistics Windows​

ItemRule
Monitoring time_ts in the monitoring database is the sampling time, not source business time. First check that samples keep updating
ObjectCheck taosx_id, task ID, and corresponding proxy or connector tags. Do not aggregate unrelated instances
Run startUse start_time to distinguish runs of the same task. Establish a new baseline after a node switch
Current-run countsCompare deltas between two samples from the same run, then divide by actual elapsed sampling seconds for rates
Historical totalstotal_ often means a historical total, but definitions depend on task type. Not every _total metric persists across processes
Unreported dataDistinguish missing tables, columns, samples, and actual zero values. Run DESCRIBE before selecting columns

For SQL queries, Grafana filters, and missing-sample handling, see Logs and Performance.

To read a metric's Chinese description from the current service, see Query a Metric's Chinese Description. That interface returns descriptions, not metric samples. For names absent from the Chinese dictionary, also check the English dictionary and actual version.

2. Common Ingestion Task Metrics​

NameUnit and meaningOperational use and limits
received_batchesBatches received in this runIndicates input activity, not source business row count
processed_batchesBatches successfully processed in this runConsider with input, failures, and target data; the difference is not an exact backlog
parsed_rowsRows generated by parsingSplitting can make input message and row counts differ
filter_skipped_rows, unmatched_rowsRows filtered or unmatched by rulesCheck whether rules intentionally skipped them; do not immediately classify them as write failures
check_skipped_rowsRows skipped by preliminary validity checksLocate issues using parsing, time, and type checks
failed_rows, failed_batchesRows or batches failed in this runObserve deltas and obtain error samples; do not assume all are archived
archived_rowsRows archived in this runChecks sample retention, not successful restores
total_written_rowsCumulative successfully written rows, possibly including duplicatesNot the number of unique target rows; still query the target
written_rowsWrite statistics for the corresponding task's current runMeaning depends on the write path; not guaranteed in every ingestion table
rows_per_second, total_rows_per_secondCurrent-run or cumulative average row ratesAverages are not instantaneous rates for the latest sampling interval
written_points, total_written_pointsPoints writtenDepends on row count, column count, and write path; not directly the number of configured points

3. Connector and Delivery Metrics​

NameMeaningWhat to check
kafka_consumed_messagesMessages consumed in this runIf the source has messages but this does not grow, check topics, partitions, groups, and offsets
kafka_sent_messages, kafka_received_acksMessages sent downstream and acknowledgments receivedAcknowledgments and messages use different units; do not subtract them as lost messages
kafka_ack_timeouts, kafka_downstream_send_failuresAcknowledgment wait warnings or downstream send failuresCheck target errors, processing congestion, and corresponding logs; do not clear offsets first
mqtt_fetched_messages, mqtt_unprocessed_messagesReceive count and current queued messagesInterpret with QoS, source retention, and target processing
mqtt_discarded_messagesDiscarded messagesCheck configuration and logs and verify the affected window; not normal load shedding
csv_files_completed, csv_files_completed_rowsFiles completed this run and rows processed in this roundResumption may include only remaining rows for this round, not unique target rows. For per-file status and all CSV-specific counts, see CSV verification
csv_files_failed, csv_ack_timeoutsFile failures and wait timeoutsCheck format, file changes, capacity, and target acknowledgments, using the corresponding file path
write_raw_failsRaw TMQ message write failures in this runPreserve complete errors and source/target versions first
persist_write_messages, persist_read_messages, persist_received_acksWrite, read, and acknowledgment counts in the persistence pathDifferences do not necessarily use the same units or equal remaining disk data; still inspect actual cache and data windows

4. TMQ Task Statistics​

In the original task row in taosExplorer, click View for metrics and select Current Run. The fields below apply to TMQ synchronization tasks; do not combine them with same-named or prefixed Kafka publishing statistics. For entry points, activity, and source offset queries, see View Subscription Progress.

Example of TMQ messages, consumers, topics, and runtime for the current run

The image is a historical example from a separate task, not a current run result for this page. Check the actual task and starting point before applying the table. Do not fill fields that a task has not produced with zeros.

FieldMeaning and interpretation
start_timeStart of this run. Establish a new statistics baseline after restart; not the earliest source business record time.
execute_timeDuration of this run. Raw statistics use milliseconds, while the UI may format the value. Check actual units before calculating rates.
topicsNumber of topics subscribed by the task, not source databases or target tables.
consumersNumber of TMQ consumers created by the task. Does not represent all source consumer groups, active business connections, or assignment of all partitions.
messagesTMQ messages received in this run. A message may contain multiple data rows or metadata; not unique target rows.
messages_of_metaMetadata-related processing count; cannot be used to infer newly created table counts or schema completeness.
messages_of_dataData-related processing count. Different processing paths count at different points; not a successful write acknowledgment.
note

Messages containing both data and metadata may involve both kinds of processing. Some raw message forwarding paths also classify counts differently from parsing paths. Therefore, the two category counts need not always sum to messages, and their difference is not data loss. Compare the same run window first, then evaluate offsets, errors, and target queries together.

5. Parquet Export Metrics​

After configuring a service task to report to taosKeeper, first run these checks in taosExplorer Data Browser or the taos CLI on the actual monitoring cluster. This example uses monitoring database log; replace it for the deployment. If the table is absent, first confirm whether that task type has run, then check the reporting path and sampling time. Do not create an empty same-named table to make the query work:

SHOW log.STABLES;
DESCRIBE log.taosx_dataout_parquet;
SELECT DISTINCT taosx_id, task_id FROM log.taosx_dataout_parquet;

After confirming actual columns and tags, query the target task. Below, '123' is an example task ID and 'taosx-host:6050' an example instance identifier. Replace both with actual values from the previous step, and use a time range covering the export:

SELECT _ts, taosx_id, task_id, start_time,
parquet_output_rows, parquet_current_file_size_bytes,
parquet_output_bytes, parquet_elapsed_ms,
parquet_write_elapsed_ms, parquet_close_elapsed_ms,
parquet_failed_batches
FROM log.taosx_dataout_parquet
WHERE task_id = '123' AND taosx_id = 'taosx-host:6050'
AND _ts > NOW - 15m
ORDER BY _ts DESC LIMIT 20;

Distinguish runs by start_time; do not sum rows as the current file size. This table identifies objects by instance and task. Do not assume job tags from other monitoring tables also exist here. For immediate /metrics viewing and missing-sample handling, see Logs and Performance. Check the exit code and file contents of standalone taosx run on the actual execution host; do not assume it is registered as a monitored service task.

NameUnit and actual meaningInterpretation limits
parquet_output_rows, parquet_output_batches, parquet_output_blocksRows, batches, and source result blocks processed in this runEntering the write flow successfully does not mean the file is closed or a final file exists. Do not estimate completion percentage from total source table rows.
parquet_last_batch_rowsRows in the most recently successfully processed batchNot remaining rows or total task rows.
parquet_current_file_size_bytesMost recently recorded current file bytes; updated to final size at completionBuffering and sampling may temporarily prevent growth; not pending memory bytes.
parquet_output_bytesFinal bytes for this round, recorded after successful close and placement of the resultZero during execution does not mean no data was processed; distinguish it from current temporary file size.
parquet_elapsed_msMilliseconds elapsed through the update in this metrics windowNot the sum of phase durations or an estimate of remaining time. Without updates, it is not a live timer.
parquet_write_elapsed_msMilliseconds for the most recent successful batch write, including resource waiting before that writeNot cumulative write time or source query time. When rate-limited, check budgets before judging the disk.
parquet_close_elapsed_msMilliseconds to close the output file successfullyUpdated only during completion; zero during execution does not show that closing is fast.
parquet_failed_batchesBatch write failure countConnection, query, result fetching, closing, or final placement failures may not increment it. Zero does not prove this round succeeded.
total_parquet_output_rows, total_parquet_output_batches, total_parquet_output_blocks, total_parquet_output_bytes, total_parquet_failed_batchesCumulative counts for the corresponding itemsRegenerating a file from the beginning in another run can still increase totals. They do not replace row counts or completeness checks for this round's file.

There is no separate parquet_query_elapsed_ms metric. Do not calculate source query time by subtracting the most recent write time from total elapsed time. For identifying query startup, first result, writing, closing, and completion phases, see Parquet Export. Use phase logs and file contents together for verification.

6. Process and Resource Control Metrics​

Process data is usually in taosx_sys; query the respective monitoring tables for proxies, connectors, and resource control. Use actual DESCRIBE output for field names.

NameUnit and purpose
process_cpu_percent, process_memory_percentPercentages for the corresponding process; not directly comparable with ps or top values using different CPU definitions
resource_rss_bytesRSS bytes for the main process and connector subprocesses included in the budget; used for soft budget decisions
resource_cpu_percentBudget observation measured against total CPU capacity
resource_brake_pausedResource pause state, 0 or 1; interpret with other resource metrics
resource_brake_totalResource pause event count
resource_brake_max_pause_total, resource_cpu_brake_max_pause_totalResumptions after reaching the maximum pause boundary; check budgets and the working set if continuously increasing
resource_egress_bytes_totalCumulative bytes included in resource egress control
resource_bucket_wait_ms_totalCumulative milliseconds waiting for egress budget, not single-request latency

These resource metrics are not direct cluster totals. taosX-Agent does not export the same set of resource_* metrics. For resource enablement, soft budgets, and maximum pause boundaries, see Tuning and Resource Control.

7. Alert Recommendations​

The table below recommends monitoring system configurations; these are not fixed alert rules built into taosX. Confirm thresholds and durations based on sampling intervals, normal load, source retention, and business freshness requirements.

SignalTrigger designFirst response
No new samples while expected to runExceeds an agreed number of reporting cycles and the object is not in planned downtimeCheck whether the object is running, the reporting path, and the monitoring database; do not replace missing samples with zeros
Failures keep increasingFailure deltas remain nonzero in the same run window, considering business toleranceObtain the first complete error and archive samples
End-to-end delay increasesTime from a known source record to target queryability exceeds business requirementsCheck source input, processing failures, target load, and intentional rate limiting
Insufficient remaining recovery windowSource backlog approaches the retention boundary, or the backup point is too oldPrioritize retaining readable data; assign capacity and response owners
Resources paused for a long timePause persists or maximum-pause events increaseCheck whether configuration is below the normal working set; do not increase concurrency based on CPU values alone
Disk or certificate riskReserve response time based on retention growth and certificate expiryAct according to directory purpose; do not delete pending-delivery caches or backup chains

Attach instance, task, time range, related queries, log entry point, and owner to every alert. Define recovery conditions too, such as errors no longer increasing and gaps filled. Do not automatically close a data integrity issue merely because one sampling cycle returns to zero.