golang-mqtt-topn

Solution Description

MQTT-TOPN: display MQTT topic statistics

Overview

This is a simple MQTT subscriber client in Go to display topic performance statistics with TopN most "chatty" topics. The idea is similar to the Unix "top" process statistics utility detailed at https://www.geeksforgeeks.org/top-command-in-linux-with-examples/ .

It is the command-line interface equivalent of https://github.com/gambitcomminc/mqtt-stats implemented with Go ncurses https://godoc.org/github.com/gbin/goncurses

This utility allows you to analyze quantitatively the published topics underneath a wildcard topic and answer such questions as "which topic generates the most messages?" and "which topic generates the most traffic?". You can sort by messages/second to get the most active topics.

Open-source, free, code is at https://github.com/gambitcomminc/golang-mqtt-topn

Video at https://www.youtube.com/watch?v=M1c--mXYl_Q

Installation / Requirements

To install this program, you need to install Go and set your Go workspace first.

Follow instructions for Eclipse Paho Go library https://github.com/eclipse/paho.mqtt.golang

go get github.com/pborman/getopt/v2

go get github.com/gbin/goncurses

go build mqtt-topn.go

Tags: MQTT, Paho, golang

Additional Details

Organization Name: Gambit Communications, Inc.

Development Status: Beta

Date Created: Tuesday, June 2, 2020 - 13:46

License: GPL

Date Updated: Wednesday, June 3, 2020 - 10:21

Submitted by: Gambit Support

Date Ranking Installs Clickthroughs
May 2024 0/0 0 0
April 2024 0/0 0 12
March 2024 0/0 0 5
January 2024 0/0 0 11
December 2023 0/0 0 7
November 2023 0/0 0 7
October 2023 0/0 0 6
September 2023 0/0 0 9
August 2023 0/0 0 5
July 2023 0/0 0 2
June 2023 0/0 0 6
May 2023 0/0 0 7
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)