Counters are used to record the task status, they will be periodically logged in monitor.log (configuration: [pipeline] checkpoint_interval_secs).
This type of counter is an array of sub-counters. During task execution, whenever there is a state change (e.g., successfully writing a batch entries to target), a new sub-counter is generated to record the increment info (e.g., number of entries written to target).
- The counter has a time window (configuration: [pipeline] counter_time_window_secs), expired sub-counters will be discarded.
- The counter is used for real-time monitoring, such as the number of synchronized entries in time window.
- The counter has aggregation algorithms, such as the average count of synchronized entries per second.
| Aggregation | Description | Example |
|---|
| sum | sum of sub-counters | count of synchronized entries in the last 10 seconds |
| avg | sum of sub-counters / number of sub-counters | average time cost for each write to target in the last 10 seconds |
| avg_by_sec | sum of all sub-counters / time window | average number of entries written to target per second in the last 10 seconds |
| max | the sub-counter with the maximum value | maximum number of entries written to target in a single batch in the last 10 seconds |
| max_by_sec | sums the sub-counters for each second, and finds the second with the maximum sum | maximum number of entries written to target in a single second in the last 10 seconds |
A simple counter to record accumulated data, such as the number of migrated MySQL records.
| Aggregation | Description | Example |
|---|
| latest | Current value | Number of synchronized data entries by the task |
[pipeline]
counter_time_window_secs=60
2024-02-29 01:25:09.554271 | extractor | record_count | avg_by_sec=13 | sum=13 | max_by_sec=13
2024-02-29 01:25:09.554311 | extractor | data_bytes | avg_by_sec=586 | sum=586 | max_by_sec=586
2024-02-29 01:25:09.554350 | extractor | extracted_record_count | avg_by_sec=20 | sum=20 | max_by_sec=20
2024-02-29 01:25:09.554391 | extractor | extracted_data_bytes | avg_by_sec=900 | sum=900 | max_by_sec=900
| Counter | Counter Type | Description |
|---|
| record_count | time window | Number of data entries pulled |
| data_bytes | time window | Data bytes pulled |
| extracted_records | time window | Number of data entries extracted from source |
| extracted_data_bytes | time window | Data bytes extracted from source |
# Traffic from source data arriving at ape-dts server's network interface (current statistics may not be fully accurate)
extractor_rps_avg 13
extractor_rps_max 13
extractor_rps_min 13
extractor_bps_avg 586
extractor_bps_max 586
extractor_bps_min 586
# Traffic after data processing, pushed to pipeline, already converted to DtData
extractor_pushed_rps_avg 20
extractor_pushed_rps_max 20
extractor_pushed_rps_min 20
extractor_pushed_bps_avg 900
extractor_pushed_bps_max 900
extractor_pushed_bps_min 900
Task metrics expose two groups of throughput gauges for real-time monitoring:
-
extractor_rps_* / extractor_bps_*: Traffic from source data arriving at ape-dts server's network interface (including business-filtered data, excluding time-filtered data)
extractor_rps_avg, extractor_rps_max, extractor_rps_min: Records per second
extractor_bps_avg, extractor_bps_max, extractor_bps_min: Bytes per second
- Note: Current statistics may not be fully accurate
-
extractor_pushed_rps_* / extractor_pushed_bps_*: Traffic after data processing and filtering, pushed to pipeline (already converted to DtData)
extractor_pushed_rps_avg, extractor_pushed_rps_max, extractor_pushed_rps_min: Records per second
extractor_pushed_bps_avg, extractor_pushed_bps_max, extractor_pushed_bps_min: Bytes per second
By comparing these two metric groups, you can observe the actual effect of filtering rules.
| Aggregation | Description |
|---|
| avg_by_sec | Average entries pulled from source per second within the window |
| sum | Total entries pulled from source within the window |
| max_by_sec | Peak entries pulled from source in any one second within the window |
| Aggregation | Description |
|---|
| avg_by_sec | Average bytes pulled from source per second within the window |
| sum | Total bytes pulled from source within the window |
| max_by_sec | Peak bytes pulled from source in any one second within the window |
| Aggregation | Description |
|---|
| avg_by_sec | Average entries extracted and pushed to pipeline per second within the window |
| sum | Total entries extracted and pushed to pipeline within the window |
| max_by_sec | Peak entries extracted and pushed to pipeline in any one second within the window |
| Aggregation | Description |
|---|
| avg_by_sec | Average bytes extracted and pushed to pipeline per second within the window |
| sum | Total bytes extracted and pushed to pipeline within the window |
| max_by_sec | Peak bytes extracted and pushed to pipeline in any one second within the window |
2024-02-29 01:25:09.554461 | sinker | rt_per_query | avg=3369 | sum=23585 | max=6408
2024-02-29 01:25:09.554503 | sinker | record_count | avg_by_sec=13 | sum=13 | max_by_sec=13
2024-02-29 01:25:09.554544 | sinker | data_bytes | avg_by_sec=586 | sum=586 | max_by_sec=586
2024-02-29 01:25:09.554582 | sinker | records_per_query | avg=1 | sum=13 | max=2
| counter | Counter Type | Description |
|---|
| rt_per_query | time window | Time taken for a single write, in microseconds |
| records_per_query | time window | Number of entries per single write |
| record_count | time window | Number of entries written to target |
| data_bytes | time window | Data bytes written to target |
| Aggregation | Description |
|---|
| avg | Average time taken for a single write in window |
| sum | Total time taken for writes to target in window |
| max | Maximum time taken for a single write in window |
| Aggregation | Description |
|---|
| avg_by_sec | Average entries written per second within the window |
| sum | Total entries written within the window |
| max_by_sec | Peak entries written in any one second within the window |
| Aggregation | Description |
|---|
| avg_by_sec | Average bytes written per second within the window |
| sum | Total bytes written within the window |
| max_by_sec | Peak bytes written in any one second within the window |
| Aggregation | Description |
|---|
| avg | Average entries written per query within the window |
| sum | Total entries written within the window |
| max | Peak entries written per query within the window |
2024-02-29 01:25:09.554348 | pipeline | record_size | avg=45
2024-02-29 01:25:09.554387 | pipeline | buffer_size | avg=3 | sum=13 | max=4
2024-02-29 01:25:09.554423 | pipeline | sinked_count | latest=13
| Counter | Counter Type | Description |
|---|
| record_size | time window | Size of a single entry, in bytes |
| buffer_size | time window | Number of entries cached in pipeline |
| sinked_count | no window | Total Number of entries handled by task |
| Aggregation | Description |
|---|
| avg | Average size of each entry in window |
| Aggregation | Description |
|---|
| avg | Average number of cached entries in window |
| sum | Total number of cached entries in window |
| max | Maximum number of cached entries in window |
| Aggregation | Description |
|---|
| latest | Number of entries handled by task |