我已经设置了 RocketMQ 仪表板并且正在探索它。 NameServerAddressList 到底是什么?它不知何故默认为 127.0.0.1:9876。
另外,仪表板看起来是空的,如何监控 RocketMQ 集群。 我是否需要自己创建集群、主题、生产者、消费者,或者我可以监控已经预先构建的东西吗?
PS:我是一个新手贡献者:),我希望这些问题并不愚蠢。
NameServerAddressList 是通过“;”连接的namesrv地址列表,例如:127.0.0.1:9876;127.0.0.2:9876。
可以在application.yml中设置为默认,或者在OPS页面中更新。
这是一个演示 yml:
server:
port: 8080
servlet:
encoding:
charset: UTF-8
enabled: true
force: true
## SSL setting
# ssl:
# key-store: classpath:rmqcngkeystore.jks
# key-store-password: rocketmq
# key-store-type: PKCS12
# key-alias: rmqcngkey
spring:
application:
name: rocketmq-dashboard
logging:
config: classpath:logback.xml
rocketmq:
config:
# if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, default localhost:9876
# configure multiple namesrv addresses to manage multiple different clusters
namesrvAddrs:
- 127.0.0.1:9876
# if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
isVIPChannel:
# timeout for mqadminExt, default 5000ms
timeoutMillis:
# rocketmq-console's data path:dashboard/monitor
dataPath: /tmp/rocketmq-console/data
# set it false if you don't want use dashboard.default true
enableDashBoardCollect: false
# set the message track trace topic if you don't want use the default one
msgTrackTopicName:
ticketKey: ticket
# must create userInfo file: ${rocketmq.config.dataPath}/users.properties if the login is required
loginRequired: false
useTLS: false
# set the accessKey and secretKey if you used acl
accessKey: # if version > 4.4.0
secretKey: # if version > 4.4.0
threadpool:
config:
coreSize: 10
maxSize: 10
keepAliveTime: 3000
queueSize: 5000