AbhishekKandoi314e opened a new issue, #187:
URL: https://github.com/apache/rocketmq-exporter/issues/187

   **Describe the bug**
   When running `rocketmq-exporter:0.0.2` we are getting error regarding 
collectBrokerRuntimeStats metrics and some of the metrics are not getting 
scraped because of this
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Run the docker image `docker.io/apache/rocketmq-exporter:0.0.2`
   2. Check logs 
   3. See error
   ```
   [2026-01-23 10:14:15.008] ERROR collectBrokerRuntimeStats-parse or report 
broker runtime stats error, 
{"table":{"msgPutTotalTodayNow":"182645","brokerActive":"true","sendThreadPoolQueueHeadWaitTimeMills":"0","putMessageDistributeTime":"[<=0ms]:24
 [0~10ms]:18 [10~50ms]:0 [50~100ms]:0 [100~200ms]:0 [200~500ms]:0 [500ms~1s]:0 
[1~2s]:0 [2~3s]:0 [3~4s]:0 [4~5s]:0 [5~10s]:0 [10s~]:0 
","queryThreadPoolQueueHeadWaitTimeMills":"0","remainHowManyDataToFlush":"0 
B","msgGetTotalTodayNow":"182645","timerEnqueueTps":"0.0","queryThreadPoolQueueSize":"0","timerOffsetBehind":"0","bootTimestamp":"1768895063001","commitLogDiskRatio_/home/rocketmq/store/commitlog":"0.57","msgPutTotalYesterdayMorning":"93492","msgGetTotalYesterdayMorning":"93492","pullThreadPoolQueueSize":"0","commitLogMinOffset":"0","pullThreadPoolQueueHeadWaitTimeMills":"0","runtime":"[
 3 days, 2 hours, 29 minutes, 52 seconds 
]","dispatchMaxBuffer":"0","putTps":"0.7 0.7499125102071426 
0.7232682391918062","getTransferredTps":"0.7 0.7
 499125102071426 0.7232682391918062","getMissTps":"57.1 49.36090789407902 
48.56729561006176","litePullThreadPoolQueueHeadWaitTimeMills":"0","EndTransactionQueueSize":"0","getTotalTps":"57.6
 49.91084373489759 
49.09391488099404","consumeQueueDiskRatio":"0.57","litePullThreadPoolQueueSize":"0","pageCacheLockTimeMills":"0","ackThreadPoolQueueSize":"0","commitLogDiskRatio":"0.57","getFoundTps":"0.5
 0.5499358408185713 
0.5266192709322828","EndTransactionThreadPoolQueueCapacity":"100000","ackThreadPoolQueueHeadWaitTimeMills":"0","putMessageFailedTimes":"0","putLatency999":"0.98","timerReadBehind":"1","commitLogMaxOffset":"431664471","getMessageEntireTimeMax":"9","msgPutTotalTodayMorning":"155988","putMessageTimesTotal":"182645","putLatency99":"0.98","msgGetTotalTodayMorning":"155988","brokerVersionDesc":"V5_4_0","startAcceptSendRequestTimeStamp":"0","sendThreadPoolQueueSize":"0","putMessageEntireTimeMax":"146","earliestMessageTimeStamp":"1768910461642","commitLogDirCapacity":"Total
 : 196.3 G
 iB, Free : 90.3 
GiB.","timerCongestNum":"0","remainTransientStoreBufferNumbs":"2147483647","ackThreadPoolQueueCapacity":"100000","queryThreadPoolQueueCapacity":"20000","putMessageAverageSize":"2363.4069971803224","dispatchBehindBytes":"0","putMessageSizeTotal":"431664471","sendThreadPoolQueueCapacity":"10000","timerDequeueTps":"0.0","pullThreadPoolQueueCapacity":"100000","litePullThreadPoolQueueCapacity":"100000"}}
   java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:542)
        at java.lang.Integer.parseInt(Integer.java:615)
        at 
org.apache.rocketmq.exporter.model.BrokerRuntimeStats.<init>(BrokerRuntimeStats.java:118)
        at 
org.apache.rocketmq.exporter.task.MetricsCollectTask.collectBrokerRuntimeStats(MetricsCollectTask.java:687)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
        at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
        at 
org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)
   ```
   
   **Expected behavior**
   No error and all metrics getting scraped
   


-- 
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