| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- $SYS Topics
- ===========
- $SYS Topics of broker is started with::
- $SYS/brokers/${node}
- ${node} is erlang node name of clustered brokers. For example::
- $SYS/brokers/emqttd@host1/version
- $SYS/brokers/emqttd@host2/version
- Broker $SYS Topics
- ------------------
- Topic | Description
- -------------------------------|------------
- $SYS/brokers | Broker nodes
- $SYS/brokers/${node}/version | Broker Version
- $SYS/brokers/${node}/uptime | Broker Uptime
- $SYS/brokers/${node}/datetime | Broker DateTime
- $SYS/brokers/${node}/sysdescr | Broker Description
-
- Client $SYS Topics
- ------------------
- Start with: $SYS/brokers/${node}/clients/
- Topic | Payload(json) | Description
- ----------------------|---------------------|---------------
- ${clientid}/connected | {ipaddress: "127.0.0.1", username: "test", session: false, version: 3, connack: 0, ts: 1432648482} | Publish when client connected
- ${clientid}/disconnected | {reason: "normal" | "keepalive_timeout" | "conn_closed"}
- Parameters of 'connected' Payload::
- ipaddress: "127.0.0.1",
- username: "test",
- session: false,
- protocol: 3,
- connack: 0,
- ts: 1432648482
- Parameters of 'disconnected' Payload::
- reason: normal,
- ts: 1432648486
- Statistics $SYS Topics
- ----------------------
- Start with '$SYS/brokers/${node}/stats/'
- Client Stats
- ----------------------
- Topic | Description
- -------------------------------------|------------
- clients/count | count of current connected clients
- clients/max | max connected clients in the same time
- Session Stats
- ----------------------
- Topic | Description
- -----------------|------------
- sessions/count | count of current sessions
- sessions/max | max number of sessions
- Subscriber Stats
- ----------------------
- Topic | Description
- ------------------|------------
- subscriptions/count | count of current subscriptions
- subscriptions/max | max number of subscriptions
- Topic Stats
- ----------------------
- Topic | Description
- ------------------|------------
- topics/count | count of current topics
- topics/max | max number of topics
- Queue Stats
- ----------------------
- Topic | Description
- ------------------|------------
- queues/count | count of current queues
- queues/max | max number of queues
- Metrics $SYS Topics
- ----------------------
- Start with '$SYS/brokers/${node}/metrics/'
- Bytes sent and received
- ----------------------
- Topic | Description
- ------------------------------------|------------
- bytes/received | MQTT Bytes Received since broker started
- bytes/sent | MQTT Bytes Sent since the broker started
- Packets sent and received
- -------------------------
-
- Topic | Description
- -------------------------|------------
- packets/received | MQTT Packets received
- packets/sent | MQTT Packets sent
- packets/connect | MQTT CONNECT Packet received
- packets/connack | MQTT CONNACK Packet sent
- packets/publish/received | MQTT PUBLISH packets received
- packets/publish/sent | MQTT PUBLISH packets sent
- packets/subscribe | MQTT SUBSCRIBE Packets received
- packets/suback | MQTT SUBACK packets sent
- packets/unsubscribe | MQTT UNSUBSCRIBE Packets received
- packets/unsuback | MQTT UNSUBACK Packets sent
- packets/pingreq | MQTT PINGREQ packets received
- packets/pingresp | MQTT PINGRESP Packets sent
- packets/disconnect | MQTT DISCONNECT Packets received
- Messages sent and received
- ---------------------------
- Topic | Description
- ---------------------------------------|-------------------
- messages/received | Messages Received
- messages/sent | Messages Sent
- messages/retained | Messages Retained
- messages/stored | TODO: Messages Stored
- messages/dropped | Messages Dropped
- Alarm Topics
- ---------------------------
- Start with '$SYS/brokers/${node}/alarms/'
- Topic | Description
- -----------------|-------------------
- ${alarmId}/alert | New Alarm
- ${alarmId}/clear | Clear Alarm
- Logs
- ---------------------------
- '$SYS/brokers/${node}/logs/${severity}'
- Severity | Description
- -----------|-------------------
- debug | Debug Log
- info | Info Log
- notice | Notice Log
- warning | Warning Log
- error | Error Log
- critical | Critical Log
- Sysmon
- ---------------------------
- Start with '$SYS/brokers/${node}/sysmon/'
- Topic | Description
- -----------------|-------------------
- long_gc | Long GC Warning
- long_schedule | Long Schedule
- large_heap | Large Heap Warning
- busy_port | Busy Port Warning
- busy_dist_port | Busy Dist Port
- Logs(TODO)
- ---------------------------
- '$SYS/brokers/${node}/log/${severity}'
- Severity | Description
- ------------|-------------------
- debug | Debug
- info | Info Log
- notice | Notice Log
- warning | Warning Log
- error | Error Log
- critical | Critical Log
- alert | Alert Log
- VM Load Topics(TODO)
- ---------------------------
- Start with '$SYS/brokers/${node}/vm/'
- Topic | Description
- -----------------|-------------------
- memory/* | TODO
- cpu/* | TODO
- processes/* | TODO
- Sys Interval
- ---------------------------
- sys_interval: 1 minute default
|