|
213 | 213 | {2, undefined, stream_publisher_error_messages, counter, "Total errored published messages", errored}
|
214 | 214 | ]},
|
215 | 215 |
|
| 216 | + {stream_consumer_metrics, [ |
| 217 | + {2, undefined, stream_consumer_offset, counter, "Total nunber of offset", offset}, |
| 218 | + {2, undefined, stream_consumer_offset_lag, counter, "Total offset lag of connection", offset_lag}, |
| 219 | + {2, undefined, stream_consumer_consumed_total, counter, "Total number of messages consumed on connection", consumed} |
| 220 | + ]}, |
| 221 | + |
216 | 222 | {connection_metrics, [
|
217 | 223 | {2, undefined, connection_incoming_packets_total, counter, "Total number of packets received on a connection", recv_cnt},
|
218 | 224 | {2, undefined, connection_outgoing_packets_total, counter, "Total number of packets sent on a connection", send_cnt},
|
@@ -538,25 +544,23 @@ get_data(rabbit_stream_publisher_created = Table, false, _, _) ->
|
538 | 544 | get_data(stream_publisher_metrics = Table, false, _, _) ->
|
539 | 545 | RealTable = rabbit_stream_publisher_created, %% real table name
|
540 | 546 | {Table, A1, A2, A3} = ets:foldl(fun({_, Props}, {T, A1, A2, A3}) ->
|
541 |
| - {T, |
| 547 | + {T, |
542 | 548 | sum(proplists:get_value(published, Props), A1),
|
543 | 549 | sum(proplists:get_value(confirmed, Props), A2),
|
544 | 550 | sum(proplists:get_value(errored, Props), A3)
|
545 | 551 | }
|
546 | 552 | end, empty(Table), RealTable),
|
547 | 553 | [{Table, [{published, A1}, {confirmed, A2}, {errored, A3}]}];
|
548 |
| - |
549 | 554 | get_data(stream_consumer_metrics = Table, false, _, _) ->
|
550 | 555 | RealTable = rabbit_stream_consumer_created, %% real table name
|
551 | 556 | {Table, A1, A2, A3} = ets:foldl(fun({_, Props}, {T, A1, A2, A3}) ->
|
552 |
| - {T, |
| 557 | + {T, |
553 | 558 | sum(proplists:get_value(offset, Props), A1),
|
554 | 559 | sum(proplists:get_value(offset_lag, Props), A2),
|
555 | 560 | sum(proplists:get_value(consumed, Props), A3)
|
556 | 561 | }
|
557 | 562 | end, empty(Table), RealTable),
|
558 | 563 | [{Table, [{offset, A1}, {offset_lag, A2}, {consumed, A3}]}];
|
559 |
| - |
560 | 564 | get_data(queue_consumer_count = MF, false, VHostsFilter, QueuesFilter) ->
|
561 | 565 | Table = queue_metrics, %% Real table name
|
562 | 566 | {_, A1} = ets:foldl(fun
|
|
0 commit comments