Skip to content
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

Wildcard support for topic metrics #12614

Open
vkuznecovas opened this issue Feb 29, 2024 · 1 comment
Open

Wildcard support for topic metrics #12614

vkuznecovas opened this issue Feb 29, 2024 · 1 comment
Labels

Comments

@vkuznecovas
Copy link

What would you like to be added or enhanced?

The metrics endpoint for topics should allow for specifying wildcards in the topic.

Why is this needed?

If you use EMQX subscriptions with wildcards and have a whole bunch of topics (50k+ for, example) it is not currently possible to get any relevant metrics metrics for such a subscription.

I'd like to see the message rates for such subscriptions so that I can automatically scale my subscribers in a k8s install.

@kjellwinblad
Copy link
Contributor

Thanks for an interesting feature request.

An idea: Create a "dummy" rule without any action and use a a rule SQL that looks something like this:

SELECT * FROM "my_interesting_topic_pattern/#"

Now, you should be able to use the rule metrics to get some information about how many messages matches the topic pattern. Is this an acceptable solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants