Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow JSON key matching for MQTT monitors #1592

Closed
1 task done
derekoharrow opened this issue Apr 29, 2022 · 3 comments · Fixed by #3857
Closed
1 task done

Allow JSON key matching for MQTT monitors #1592

derekoharrow opened this issue Apr 29, 2022 · 3 comments · Fixed by #3857
Labels
feature-request Request for new features to be added

Comments

@derekoharrow
Copy link

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ 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

@derekoharrow derekoharrow added the feature-request Request for new features to be added label Apr 29, 2022
@mrMiimo
Copy link

mrMiimo commented Sep 26, 2022

yea, this could be the turning point for this type of monitoring

@johntdyer
Copy link

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
Copy link

alexmaurer-madis commented Dec 17, 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 :)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants