|
|
|
@ -208,7 +208,7 @@ static void statistics(struct lab *lab, uint64_t id, int loads) { |
|
|
|
if (stream_buffer_read(local.buffer, last, sub, &wire, &length, &actual) == STREAM_OK) |
|
|
|
if (stream_buffer_read(local.buffer, last, sub, &wire, &length, &actual) == STREAM_OK) |
|
|
|
printf(",\"source_timestamp_ms\":%u", (unsigned)stream_read_be(wire + STREAM_BLOCK_TIMESTAMP_OFF, 2)); |
|
|
|
printf(",\"source_timestamp_ms\":%u", (unsigned)stream_read_be(wire + STREAM_BLOCK_TIMESTAMP_OFF, 2)); |
|
|
|
struct stream_metric_snapshot metric; |
|
|
|
struct stream_metric_snapshot metric; |
|
|
|
if (stream_local_metrics(lab->inst, &info.descriptor, sub, now_ns() / UINT64_C(1000000), &metric) == STREAM_OK) |
|
|
|
if (stream_local_metrics(lab->inst, &info.descriptor, sub, get_time_tb() / 10, &metric) == STREAM_OK) |
|
|
|
printf(",\"lag_ms\":%" PRIu64 ",\"source_rate\":%" PRIu64 ",\"receive_rate\":%" PRIu64 |
|
|
|
printf(",\"lag_ms\":%" PRIu64 ",\"source_rate\":%" PRIu64 ",\"receive_rate\":%" PRIu64 |
|
|
|
",\"late_blocks\":%" PRIu64 ",\"stops\":%" PRIu64 ",\"stopped\":%d", |
|
|
|
",\"late_blocks\":%" PRIu64 ",\"stops\":%" PRIu64 ",\"stopped\":%d", |
|
|
|
metric.lag_ms, metric.source_rate_bytes_sec, metric.receive_rate_bytes_sec, |
|
|
|
metric.lag_ms, metric.source_rate_bytes_sec, metric.receive_rate_bytes_sec, |
|
|
|
|