如何从安装在 Windows 中的 Mosquitto 代理获取消息计数,或者我们可以访问和查询代理数据库吗?
最佳答案
查看 manual 中的 broker status 部分,因为有许多主题可以根据您的追求进行检查,例如......
$SYS/broker/load/messages/received/+ The moving average of the number of all types of MQTT messages received by the broker over different time intervals. The final "+" of the hierarchy can be 1min, 5min or 15min. The value returned represents the number of messages received in 1 minute, averaged over 1, 5 or 15 minutes.
$SYS/broker/load/messages/sent/+ The moving average of the number of all types of MQTT messages sent by the broker over different time intervals. The final "+" of the hierarchy can be 1min, 5min or 15min. The value returned rep resents the number of messages send in 1 minute, averaged over 1, 5 or 15 minutes.
关于database - 如何从 Mosquitto 代理获取消息计数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25339221/