database - 如何从 Mosquitto 代理获取消息计数

标签 database mqtt mosquitto

如何从安装在 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/

相关文章:

node.js - mqtt mosca pahojs WebSocket 连接到 'ws://localhost:1884/mqtt' 失败/超时

mqtt - 在 MQTT 中实现 XMPP 存在特性

javascript - 需要找到 MQTT 的安全 Websocket 代理

ssl - 如何通过端口 8883 使 TLS 在 MQTT 中工作?

mysql - 使用 VB.Net 连接到在线 MySQL 数据库

database - 基于过滤参数的时间多重方法过滤

mqtt - 如何发送二进制数据?

c# - 在 ASP.NET 页面中以设定的时间间隔检查数据库更改

mysql - 如何使用 JOIN 在 mysql 中创建 View ?

java - MqttClient 对象的同步和异步接口(interface)不起作用