Forum Discussion

thanh_rodke's avatar
11 years ago

Monitoring of json pages

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.

6 Replies

Replies have been turned off for this discussion
  • 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.

  • 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!

  • 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.

  • One other note, the Advanced Response Settings supports plain text, regular expression and glob expression.

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