louislam / uptime-kuma

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

[mqtt] Add Monitoring of Wildcard Topics like `"/device/#"` #5041

Open bkkoli opened 3 weeks ago

bkkoli commented 3 weeks ago

📑 I have found these related issues/pull requests

I don't find issues related with features

🏷️ Feature Request Type

Change to existing monitor

🔖 Feature description

Currently, MQTT monitoring is only possible for Topic with exact Topic Name matching.

For example, if you want to check whether the device data has been received through MQTT, there may be cases where Wildcard Topic is required.

Therefore, it would be nice to add a function to monitor Topic's wildcard.

✔️ Solution

it would be nice to add a function to monitor Topic's wildcard.

❓ Alternatives

No response

📝 Additional Context

No response

CommanderStorm commented 3 weeks ago

I don't know if mqtt allows for this, but if it does a PR is appreciated

cocoonkid commented 4 days ago

Yes it does. This would be really helpful.

Actually allowing for multiple mqtt topics and message:contains: (for dynamic messages where we only look for a specific string) would be perfect.