hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Question] Whether monitoring of MQTT connection availability will be supported?

Open Johonnyr opened this issue 1 year ago • 6 comments

Question

Hertzbeat has already supported the monitoring of WebSocket connections, will we support the monitoring of the connection of the MQTT protocol? You can enter MQTT address, port, account secret, and so on

Johonnyr avatar Jul 15 '24 09:07 Johonnyr

hi,hertzbeat already supports monitoring emqx servers. Can it meet your needs?

LiuTianyou avatar Jul 15 '24 12:07 LiuTianyou

hi,hertzbeat already supports monitoring emqx servers. Can it meet your needs?

hi, I do see that hertzbeat already supports Broker monitoring of EMQX5 through the API interface. What I mean by monitoring the availability of MQTT connections is that you want to monitor whether an mqtt client is able to connect to EMQX Broker and subscribe/publish topics properly. Not just the current statistical indicators monitoring.

Johonnyr avatar Jul 18 '24 08:07 Johonnyr

I'm not sure whether i describe it clearly. If it will be implemented in a future version, please @ me.

Johonnyr avatar Jul 24 '24 00:07 Johonnyr

@Johonnyr hi, if this monitoring is designed like this, can it meet the needs?

The user needs to enter parameters

  • mqtt address
  • port
  • username (optional)
  • password (optional)
  • topic
  • messages for testing

The collected indicators include

  • response time of the client connecting to the mqtt server (integer)
  • whether messages can be published (bool)
  • whether to subscribe to the topic (bool)

LiuTianyou avatar Aug 13 '24 16:08 LiuTianyou

@LiuTianyou Thanks for reply. Yep, and the user should also be able to enter parameter: mqtt clientId.

Johonnyr avatar Aug 20 '24 05:08 Johonnyr

@Johonnyr got it, we will add monitoring of mqtt connections later, thank you for your suggestion

LiuTianyou avatar Aug 22 '24 13:08 LiuTianyou