RichardChengshaojin opened a new issue #78:
URL: https://github.com/apache/rocketmq-exporter/issues/78
**Describe the bug**
I deleted the subscription group, then queried the metrics
**rocketmq_consumer_offset** in prometheus, and found the value of tag
**countOfOnlineConsumers** was still 1.
**To Reproduce**
Steps to reproduce the behavior:
1. Delete the subscription group through rocketmq console or the script
provided by rocket mq `sh mqadmin deleteSubGroup -n namesrv -c cluster -g
groupName`, say groupName is **test-accumulate-consumer-1**
2. Query metrics through prometheus,
`rocketmq_group_diff{group="test-accumulate-consumer-1"}`
3. Result is

4. As shown in console, find no consumer
5.

**Expected behavior**
Expect the value of tag `countOfOnlineConsumers` to be `0` rather than `1`.
As shown below
`rocketmq_group_diff{countOfOnlineConsumers="0",group="test-accumulate-consumer-1",instance="172.20.22.30:5557",job="dev-metrics",msgModel="1",topic="test-accumulate"}`
**Desktop (please complete the following information):**
- Rocketmq broker version is V4_7_0
**Additional context**
I found a similar issue here:
https://github.com/apache/rocketmq-exporter/issues/62
--
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]