mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Allow JSON key matching for MQTT monitors #1050
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1050
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @derekoharrow on GitHub (Apr 29, 2022).
⚠️ Please verify that this feature request has NOT been suggested before.
🏷️ Feature Request Type
Other
🔖 Feature description
The new MQTT monitor feature is great, but is a little basic. You can only match a topic with a set value. Often in MQTT the topic can consist of many values in JSON format. It would be great to be able to match just one of these values rather than the whole topic, and other values may change, but the service may still be up.
It would also be great if you could match using multiple values - e.g. "running" OR "healthy" both meaning up whereas "stopped", "exited", etc. would mean down.
✔️ Solution
As above.
❓ Alternatives
No response
📝 Additional Context
No response
@mrMiimo commented on GitHub (Sep 26, 2022):
yea, this could be the turning point for this type of monitoring
@johntdyer commented on GitHub (Dec 15, 2022):
I think JSON path support for all check responses would be a nice add, or at the very least regex... better yet json path on key, and regex on value :)
@alexmaurer-madis commented on GitHub (Dec 17, 2022):
I think like you that JSON and REGEX is a must have feature to check responses.
I agree that, ideally, this must be possible for all responses (no matter the monitor).
But when you have, in the same response, multiple JSON key-value pairs or array to check the easiest way for me would be to be able to write code of Javascript like the function node in node-red.
I opened a feature-request 2431