thanh rodke

Monitoring of json pages

Recommended Posts

As a vertical market provider, we have a need to monitor an application that is json-based. Logicmonitor can load the raw html itself, and gather latency times and the http status codes, but there's no way to monitor expected text that's a result of the JSON calls.

Since it's part of the data stream, it makes sense that LogicMonitor could read read a json call just like anything else, and parse the data stream.

Edited by Mike Suding

Share this post


Link to post
Share on other sites

If the application is being monitored as a host by one of your internal collectors - there is a full JSON post processor, that can understand JSON and interpret and extract values. See http://help.logicmonitor.com/using/datasource/creating-datasources/defining-datapoints/post-processor-methods. If it's from the Services tab, the returned web page can be checked for glob or regex expressions.  Do either of these approaches meet your needs?

Edited by Mike Suding

Share this post


Link to post
Share on other sites

I was able to work with my developers and get an http get command line worked out that returns JSON in clear text. I am working with LoMo support right now working out regex to parse the output.

Edited by Mike Suding

Share this post


Link to post
Share on other sites

Any chance you could add functionality to the JSON processor to match against RegEx? We have JSON status pages that report various things for our applications, being able to monitor statuses in this way would be great!

Share this post


Link to post
Share on other sites

I am not sure how much control you have over your JSON status pages, but in our case, I had our developers configure the JSON page to return a status of Error for any of nine things that we were checking with that one JSON call. So we configured the LoMo Advanced Response Settings to Reguire this text of Error be Interpreted as a Regular expression to be not present on the returned page.

Share this post


Link to post
Share on other sites

DataSources that use 'Script' as the collection method can interpret JSON to retrieve values. See screenshot. I hope this helps

 

image.thumb.png.0a8c6f982640405513543a8cd9e746c0.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now