I have downlaod and install hivemq CE in Ubuntu system 20.04. and It seems run well.
I tell my friends come to use this mqtt broker. but how can i know how many user online and topic?
you have to options:
via Metrics, shows only how much:
- for user online: com.hivemq.networking.connections.current
- for amount of subscription: com.hivemq.subscriptions.overall.current
or you create an extension, if you want it more detailed information:
- for clients: Iterate over clients
- for subscriptions: Iterate over subscriptions, note that there are also two other iterate options
Hope this helps,
Michael from the HiveMQ team
What is meant by “via metrics”?
Still looking for best way to get statistics from the Hivemq CE broker.
the public extension SDK exposes the metric registry which can be used to access the metrics and do whatever you want with them, but most likely the information is written into a database. We offer some free monitoring extensions that do this already + a blog post how to set this up:
You could also access the metrics via the Jconsole.
Hope this helps!
Thanks. I am studying grafana. Seems a lot of work to set it up, as it involves InfluxDB config too.
Is there a readymade solution I can try out? Plug and play types.