yangwenting-ywt commented on issue #5366:
URL: https://github.com/apache/rocketmq/issues/5366#issuecomment-1309699447

   > Will you add metric gauge about consumeOKTPS and consumeFailedTPS in 
ConsumeStatus.java? These data on consumer client are very helpful to find if 
there are some error cause by dirty data or virtual machine issues.
   > 
   > And will you and similar consumeOKTPS and consumeFailedTPS on producer 
client? Such like producerOKTPS or producerFailedTPS. Although this is not 
important as consumer TPS, it's better to help business to find who is the bad 
guy that send large garbage.
    suf
   Hisrograms can track the number of observations (showing up as a time series 
with a _count suffix) is inherently a counter.
   So, to calculate consumeOKTPS we can use the following experession:
   `rate(rocketmq_process_time_count{invocation_status="success"}[1m])`
   to calculate producerOKTPS  we can use the following experession:
   `rate(rocketmq_send_cost_time_count{invocation_status="success"}[1m])`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to