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.
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
| Item | Rule |
|---|---|
| Monitoring time | _ts in the monitoring database is the sampling time, not source business time. First check that samples keep updating |
| Object | Check taosx_id, task ID, and corresponding proxy or connector tags. Do not aggregate unrelated instances |
| Run start | Use start_time to distinguish runs of the same task. Establish a new baseline after a node switch |
| Current-run counts | Compare deltas between two samples from the same run, then divide by actual elapsed sampling seconds for rates |
| Historical totals | total_ often means a historical total, but definitions depend on task type. Not every _total metric persists across processes |
| Unreported data | Distinguish 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
| Name | Unit and meaning | Operational use and limits |
|---|---|---|
received_batches | Batches received in this run | Indicates input activity, not source business row count |
processed_batches | Batches successfully processed in this run | Consider with input, failures, and target data; the difference is not an exact backlog |
parsed_rows | Rows generated by parsing | Splitting can make input message and row counts differ |
filter_skipped_rows, unmatched_rows | Rows filtered or unmatched by rules | Check whether rules intentionally skipped them; do not immediately classify them as write failures |
check_skipped_rows | Rows skipped by preliminary validity checks | Locate issues using parsing, time, and type checks |
failed_rows, failed_batches | Rows or batches failed in this run | Observe deltas and obtain error samples; do not assume all are archived |
archived_rows | Rows archived in this run | Checks sample retention, not successful restores |
total_written_rows | Cumulative successfully written rows, possibly including duplicates | Not the number of unique target rows; still query the target |
written_rows | Write statistics for the corresponding task's current run | Meaning depends on the write path; not guaranteed in every ingestion table |
rows_per_second, total_rows_per_second | Current-run or cumulative average row rates | Averages are not instantaneous rates for the latest sampling interval |
written_points, total_written_points | Points written | Depends on row count, column count, and write path; not directly the number of configured points |
3. Connector and Delivery Metrics
| Name | Meaning | What to check |
|---|---|---|
kafka_consumed_messages | Messages consumed in this run | If the source has messages but this does not grow, check topics, partitions, groups, and offsets |
kafka_sent_messages, kafka_received_acks | Messages sent downstream and acknowledgments received | Acknowledgments and messages use different units; do not subtract them as lost messages |
kafka_ack_timeouts, kafka_downstream_send_failures | Acknowledgment wait warnings or downstream send failures | Check target errors, processing congestion, and corresponding logs; do not clear offsets first |
mqtt_fetched_messages, mqtt_unprocessed_messages | Receive count and current queued messages | Interpret with QoS, source retention, and target processing |
mqtt_discarded_messages | Discarded messages | Check configuration and logs and verify the affected window; not normal load shedding |
csv_files_completed, csv_files_completed_rows | Files completed this run and rows processed in this round | Resumption 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_timeouts | File failures and wait timeouts | Check format, file changes, capacity, and target acknowledgments, using the corresponding file path |
write_raw_fails | Raw TMQ message write failures in this run | Preserve complete errors and source/target versions first |
persist_write_messages, persist_read_messages, persist_received_acks | Write, read, and acknowledgment counts in the persistence path | Differences 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.

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.
| Field | Meaning and interpretation |
|---|---|
start_time | Start of this run. Establish a new statistics baseline after restart; not the earliest source business record time. |
execute_time | Duration of this run. Raw statistics use milliseconds, while the UI may format the value. Check actual units before calculating rates. |
topics | Number of topics subscribed by the task, not source databases or target tables. |
consumers | Number of TMQ consumers created by the task. Does not represent all source consumer groups, active business connections, or assignment of all partitions. |
messages | TMQ messages received in this run. A message may contain multiple data rows or metadata; not unique target rows. |
messages_of_meta | Metadata-related processing count; cannot be used to infer newly created table counts or schema completeness. |
messages_of_data | Data-related processing count. Different processing paths count at different points; not a successful write acknowledgment. |
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.
| Name | Unit and actual meaning | Interpretation limits |
|---|---|---|
parquet_output_rows, parquet_output_batches, parquet_output_blocks | Rows, batches, and source result blocks processed in this run | Entering 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_rows | Rows in the most recently successfully processed batch | Not remaining rows or total task rows. |
parquet_current_file_size_bytes | Most recently recorded current file bytes; updated to final size at completion | Buffering and sampling may temporarily prevent growth; not pending memory bytes. |
parquet_output_bytes | Final bytes for this round, recorded after successful close and placement of the result | Zero during execution does not mean no data was processed; distinguish it from current temporary file size. |
parquet_elapsed_ms | Milliseconds elapsed through the update in this metrics window | Not the sum of phase durations or an estimate of remaining time. Without updates, it is not a live timer. |
parquet_write_elapsed_ms | Milliseconds for the most recent successful batch write, including resource waiting before that write | Not cumulative write time or source query time. When rate-limited, check budgets before judging the disk. |
parquet_close_elapsed_ms | Milliseconds to close the output file successfully | Updated only during completion; zero during execution does not show that closing is fast. |
parquet_failed_batches | Batch write failure count | Connection, 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_batches | Cumulative counts for the corresponding items | Regenerating 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.
| Name | Unit and purpose |
|---|---|
process_cpu_percent, process_memory_percent | Percentages for the corresponding process; not directly comparable with ps or top values using different CPU definitions |
resource_rss_bytes | RSS bytes for the main process and connector subprocesses included in the budget; used for soft budget decisions |
resource_cpu_percent | Budget observation measured against total CPU capacity |
resource_brake_paused | Resource pause state, 0 or 1; interpret with other resource metrics |
resource_brake_total | Resource pause event count |
resource_brake_max_pause_total, resource_cpu_brake_max_pause_total | Resumptions after reaching the maximum pause boundary; check budgets and the working set if continuously increasing |
resource_egress_bytes_total | Cumulative bytes included in resource egress control |
resource_bucket_wait_ms_total | Cumulative 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.
| Signal | Trigger design | First response |
|---|---|---|
| No new samples while expected to run | Exceeds an agreed number of reporting cycles and the object is not in planned downtime | Check whether the object is running, the reporting path, and the monitoring database; do not replace missing samples with zeros |
| Failures keep increasing | Failure deltas remain nonzero in the same run window, considering business tolerance | Obtain the first complete error and archive samples |
| End-to-end delay increases | Time from a known source record to target queryability exceeds business requirements | Check source input, processing failures, target load, and intentional rate limiting |
| Insufficient remaining recovery window | Source backlog approaches the retention boundary, or the backup point is too old | Prioritize retaining readable data; assign capacity and response owners |
| Resources paused for a long time | Pause persists or maximum-pause events increase | Check whether configuration is below the normal working set; do not increase concurrency based on CPU values alone |
| Disk or certificate risk | Reserve response time based on retention growth and certificate expiry | Act 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.