Mosquitto server statistics

Hi,

I simply wanted to present Mosquitto Server statistics to my InfluxDB/Grafana.

So how many events over time are processed / load the CPU and Memory of this virtual server….

I found different hints how each Topic (e.g. MQTT enabled Sensor data) can be monitored so that the Telegraf registers to different topics - BUT this is not meant!

I simply want to have the general overview of the Debian virtual sever instance and its task as a Broker overall. I hope I could describe it correct?

Is there a telegraf.conf as a simple examle how this can be addressed?

Thanks so far.

Have a look at this telegraf example for the same: MQTT and InfluxDB Integration . Another option without MQTT is to collect system metrics via this Telegraf plugin directly from your Debian virtual server and write that to InfluxDB directly.

Thank you @suyash

this is known and I do it with different other servers and my Fritz!Box (Internet Router) for the operating system parameters and more.

I used the CPU and Memory part more for the explanation of the intended monitoring level. I thought that Mosquitto may have some build-in counters so that I have not to count the messages as a dummy MQTT client.