安装Promethus Exporter
上传附件的jar包到RocketMQ的机器上,运行如下命令验证
上述操作操作后,访问rocketmq机器IP+nodeport端口 + /metrics 即可看到对应的指标数据
添加监控
导入附件的RockerMQ模板后,宏值改为实际的export地址即可
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
nohup java -jar rocketmq-exporter-0.0.2-SNAPSHOT.jar --rocketmq.config.namesrvAddr="127.0.0.1:9876" --rocketmq.config.webTelemetryPath="/metrics" --server.port="5557" &
其中rocketmq.config.namesrvAddr为rockermq nameserver地址,用127.0.0.1:9876即可
rocketmq.config.webTelemetryPath 为访问时的uri
server.port 为 export的端口,可更改
资料参考:
https://rocketmq.apache.org/zh/docs/4.x/deployment/04Exporter
https://github.com/apache/rocketmq-exporter?tab=readme-ov-file#configuration

Was this page helpful?
