1.0.5 • Published 5 years ago

mqtt-top v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

mqtt top

This small tool reads messages from MQTT and shows a line for each unique metadata.ssrc with min/max payload length, min/max latency between to messages for the same ssrc and a chart for the last 30 received messages.

Example

Install

npm install -g mqtt-top

Run

BROKER_URL=mqtt.prod.aigent.com:1883 \
BROKER_USERNAME=my-username \
BROKER_PASSWORD=my-password \
BROKER_TOPIC=buffer \
mqtt-top

Environment Variables

NameDefaultDescription
BROKER_URLlocalhost:1883MQTT Broker hostname + port
BROKER_USERNAMEchangemeMQTT Broker username
BROKER_PASSWORDchangemeMQTT Broker password
BROKER_TOPICbufferMQTT Broker topic to subscribe to
SESSION_TTL20000Milliseconds when a session can be considered as ended
SPARKLINE_COUNT30Amount of items to draw for Last Latencies and Last Payloads
REFRESH_INTERVAL1000Refresh interval in milliseconds
LOG_HISTORY20Amount of history items to keep and show
MAX_ROWSautomagicallyDefines the max. amount of rows to print, if not given it is determined automatically by the terminal height
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago