louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
60.33k stars 5.4k forks source link

Add option to ignore failed MQTT broker connection #5093

Open joe-sydney opened 2 months ago

joe-sydney commented 2 months ago

šŸ“‘ I have found these related issues/pull requests

Could not find related issues

šŸ·ļø Feature Request Type

Change to existing monitor

šŸ”– Feature description

A) If the MQTT monitor is used to monitor the MQTT broker and connection to the broker fails, then the monitor should be marked as down (which I believe is the current behaviour).

B) However, in cases where the MQTT is used to monitor other applications (by subscribing to messages that those applications are publishing), then loss of connectivity to the broker should not result in the monitor being down.

Currently, I am using the MQTT monitor extensively for B) in Home Assistant, and sensor states get rather messy when the Mosquitto broker is down for whatever reason.

āœ”ļø Solution

It would be good if the monitor configuration has an additional field to optionally ignore the connectivity status. The default behaviour could still remain as is (A), but if the option this selected, then (B) applies

ā“ Alternatives

No response

šŸ“ Additional Context

No response

cocoonkid commented 2 months ago

Yes, agreed. Very helpful.