-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add count
aggregation function for MAL
#11869
Add count
aggregation function for MAL
#11869
Conversation
Please provide UTs for the new functions. |
I think the result of your expression is:
Is that expected? please refer to the other UT test cases and add yours: |
Yes, After the |
|
I need to pre-aggregation on the |
you should aggregate the dimension |
From the rocketMQ official exporter doc I found these metrics samples:
Could you give more details on how to calculate the backlog messages? |
producer_offset*consumer_group_count-consumer_offset |
Could you explain (producer_offset*consumer_group_count-consumer_offset)? |
This is original metrics
The concept of a consumer group is different from that of a producer group. Each consumer group has its own independent offset, and the group of producer is no longer in use in 5.x version. |
I was talking with Kai, I am wondering whether number of the remaining messages should be good to measure by group? Rather all for all grouping? |
The |
Do you mean we should caculate the remaining msg in each group? The topic dimenssion provides each group offset
Or should I use this?
|
For MQ case, yes, that should be more useful.
Does this work? I think minus only works when labels are same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The count function LGTM. Although it's not suitable for offset calculation.
We also can use it to calculate the number of topics or groups. etc.
I am not on my computer now, I will test it later, maybe MQE could works? |
MQE also requires they have the same labels or |
CHANGES
log.This is my scenario
In rocketmq different consumer group has a different consumer offset
Then I can get the consumer group number to caculate the blacklog messages