开发者社区 > 云原生 > 云消息队列 > 正文

Apache RocketMQ-export包如下错误日志:大佬 这个问题有遇到过吗 [2023-

Apache RocketMQ-export包如下错误日志:大佬 这个问题有遇到过吗

[2023-04-28 10:48:15.063] WARN collectBrokerStatsTopic-topic's consumer is empty, rmq_sys_SYNC_BROKER_MEMBER_rocketmq-standalone-broker-0 [2023-04-28 10:48:15.065] ERROR TOPIC_PUT_NUMS-error, topic=SCHEDULE_TOPIC_XXXX, master broker=10.244.194.134:10911, The stats <TOPIC_PUT_NUMS> <SCHEDULE_TOPIC_XXXX> not exist [2023-04-28 10:48:15.065] ERROR TOPIC_PUT_SIZE-error, topic=SCHEDULE_TOPIC_XXXX, master broker=10.244.194.134:10911, The stats <TOPIC_PUT_SIZE> <SCHEDULE_TOPIC_XXXX> not exist [2023-04-28 10:48:15.067] WARN collectBrokerStatsTopic-topic's consumer is empty, SCHEDULE_TOPIC_XXXX [2023-04-28 10:48:15.069] ERROR TOPIC_PUT_NUMS-error, topic=rocketmq-standalone, master broker=10.244.194.134:10911, The stats <TOPIC_PUT_NUMS> not exist [2023-04-28 10:48:15.070] ERROR TOPIC_PUT_SIZE-error, topic=rocketmq-standalone, master broker=10.244.194.134:10911, The stats <TOPIC_PUT_SIZE> not exist而且export报了个空指针ERROR collectBrokerRuntimeStats-parse or report broker runtime stats error, {"table":{"msgPutTotalTodayNow":"74666","brokerActive":"true","sendThreadPoolQueueHeadWaitTimeMills":"0","putMessageDistributeTime":"[<=0ms]:0 [0~10ms]:0 [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":"1608","timerEnqueueTps":"0.0","queryThreadPoolQueueSize":"0","timerOffsetBehind":"0","bootTimestamp":"1682390058438","msgPutTotalYesterdayMorning":"0","msgGetTotalYesterdayMorning":"0","pullThreadPoolQueueSize":"0","commitLogMinOffset":"0","pullThreadPoolQueueHeadWaitTimeMills":"0","runtime":"[ 3 days, 0 hours, 29 minutes, 56 seconds ]","dispatchMaxBuffer":"0","brokerVersion":"413","putTps":"0.0 0.0 0.0","getTransferredTps":"14.298570142985701 15.34820937557285 15.661245167311026","getMissTps":"43.69563043695631 41.4784941756795 40.49460071990401","litePullThreadPoolQueueHeadWaitTimeMills":"0","EndTransactionQueueSize":"0","getTotalTps":"44.59554044595541 42.44504807772426 41.48113584855352","consumeQueueDiskRatio":"0.51","litePullThreadPoolQueueSize":"0","pageCacheLockTimeMills":"0","commitLogDiskRatio_/root/store/commitlog":"0.51","commitLogDiskRatio":"0.51","getFoundTps":"0.8999100089991 0.9665539020447614 0.9865351286495133","EndTransactionThreadPoolQueueCapacity":"100000","putMessageFailedTimes":"0","putLatency999":"0.00","timerReadBehind":"1","commitLogMaxOffset":"23494045","getMessageEntireTimeMax":"40","msgPutTotalTodayMorning":"74658","putMessageTimesTotal":"74666","putLatency99":"0.00","msgGetTotalTodayMorning":"1608","brokerVersionDesc":"V5_0_0","startAcceptSendRequestTimeStamp":"0","sendThreadPoolQueueSize":"0","putMessageEntireTimeMax":"28","earliestMessageTimeStamp":"1681368428493","commitLogDirCapacity":"Total : 75.8 GiB, Free : 37.7 GiB.","timerCongestNum":"0","remainTransientStoreBufferNumbs":"2147483647","queryThreadPoolQueueCapacity":"20000","putMessageAverageSize":"310.0","dispatchBehindBytes":"0","putMessageSizeTotal":"23146460","sendThreadPoolQueueCapacity":"10000","timerDequeueTps":"0.0","pullThreadPoolQueueCapacity":"100000","litePullThreadPoolQueueCapacity":"100000"}} java.lang.NullPointerException: null at org.apache.rocketmq.exporter.model.BrokerRuntimeStats.loadTps(BrokerRuntimeStats.java:141) at org.apache.rocketmq.exporter.model.BrokerRuntimeStats.(BrokerRuntimeStats.java:88) at org.apache.rocketmq.exporter.task.MetricsCollectTask.collectBrokerRuntimeStats(MetricsCollectTask.java:621) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) 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:93) 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:748)找到了 是个bug https://github.com/apache/rocketmq-exporter/issues/117这个是源码单词拼写错误造成的 能麻烦尽快找人修复一下吗image.png 还有最新的rocketmq-exporter引入的还是4.9.4的包,换成5.0.0的就会有些方法实现变化了 编译报错里面的dockerfile也有问题

FROM java:8 MAINTAINER breeze ADD rocketmq-exporter-0.0.2-SNAPSHOT.jar quickstart.jar EXPOSE 5557 ENTRYPOINT ["java","-jar","quickstart.jar"]打包出来后可执行的包是rocketmq-exporter-0.0.2-SNAPSHOT-exec.jar不带-exec后缀的包无法执行,这个指标在rocketmq5.0的集群里面拿不到 报了空指针,image.png

展开
收起
真的很搞笑 2023-05-02 07:47:20 365 0
1 条回答
写回答
取消 提交回答
  • exporter报的错吧,这个不影响,可以提个pr修复下,此回答整理自钉群“群2-Apache RocketMQ 中国开发者钉钉群”

    2023-05-03 20:58:43
    赞同 展开评论 打赏

涵盖 RocketMQ、Kafka、RabbitMQ、MQTT、轻量消息队列(原MNS) 的消息队列产品体系,全系产品 Serverless 化。RocketMQ 一站式学习:https://rocketmq.io/

相关产品

  • 云消息队列 MQ
  • 相关电子书

    更多
    RocketMQ Client-GO 介绍 立即下载
    RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载
    基于 RocketMQ Prometheus Exporter 打造定制化 DevOps 平台 立即下载

    相关镜像