You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/10/21 07:09:07 UTC
[GitHub] [rocketmq-exporter] maixiaohai opened a new issue #36: DLedger mode metrics will display the old master data
maixiaohai opened a new issue #36:
URL: https://github.com/apache/rocketmq-exporter/issues/36
**Describe the bug**
When restart cluster which deployed on DLedger mode, the master may change.But the broker tps metrics will always show the old one.
**To Reproduce**
1.restart cluster and the master broker machine change.
2.the exporter service not restart.
**Expected behavior**
only new metrics data show, or the old data change to 0.
**Screenshots**
tps dashboard

some exporter data:
```
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Amachine",broker="c3cloudsrv-common-rocketmq-raft0",} 33441.97
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Bmachine",broker="c3cloudsrv-common-rocketmq-raft1",} 13892.3
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="",broker="c3cloudsrv-common-rocketmq-raft1",} 0.0
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Cmachine",broker="c3cloudsrv-common-rocketmq-raft1",} 0.0
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Dmachine",broker="c3cloudsrv-common-rocketmq-raft1",} 12083.87
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Emachine",broker="c3cloudsrv-common-rocketmq-raft0",} 12083.2
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="Fmachine",broker="c3cloudsrv-common-rocketmq-raft0",} 12270.9
```
**there is only two master in the cluster, but the metrics is more than 2.**
- rocketmq version 4.7.0
- exporter version 0.0.2
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-exporter] maixiaohai commented on issue #36: DLedger mode metrics will display the old master data
Posted by GitBox <gi...@apache.org>.
maixiaohai commented on issue #36:
URL: https://github.com/apache/rocketmq-exporter/issues/36#issuecomment-713432723
After fix the broker stats always return 2 master data
```
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="A",broker="c3cloudsrv-common-rocketmq-raft1",} 11848.72
rocketmq_broker_tps{cluster="c3cloudsrv-common-rocketmq",brokerIP="B",broker="c3cloudsrv-common-rocketmq-raft0",} 11847.95
rocketmq_broker_qps{cluster="c3cloudsrv-common-rocketmq",brokerIP="A",broker="c3cloudsrv-common-rocketmq-raft1",} 23774.55
rocketmq_broker_qps{cluster="c3cloudsrv-common-rocketmq",brokerIP="B",broker="c3cloudsrv-common-rocketmq-raft0",} 23340.07
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-exporter] RongtongJin closed issue #36: DLedger mode metrics will display the old master data
Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #36:
URL: https://github.com/apache/rocketmq-exporter/issues/36
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq-exporter] maixiaohai commented on issue #36: DLedger mode metrics will display the old master data
Posted by GitBox <gi...@apache.org>.
maixiaohai commented on issue #36:
URL: https://github.com/apache/rocketmq-exporter/issues/36#issuecomment-713359463
@francisoliverlee May I submit a pr to fix this?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org