This article applies as of PRTG 25


I want to use the REST Custom v2 sensor with XPath or JSON. Are there any recommended resources that can help me understand these topics in relation to PRTG?


Rest Custom v2

The REST Custom v2 sensor queries a JSON or XML REST API endpoint and maps the result to sensor values. While this makes the sensors very flexible and applicable to many situations, it helps to have a strong understanding of JSONPath and XPath in order to configure queries to work with PRTG exactly as you want them to.


There are endless resources on the internet, but we've collected some of our favorites below.


From Paessler


Video Tutorial


Rest Custom v2 sensor


Case Studies


Retrofitting and Skysens - knowledge is power

Securing your config backups with BackBox and Paessler PRTG


External Sources


JSONPath


JSONPath Online Evaluator

JsonCons JsonPath

  • See a list of supported functions at JsonCons JSONPath | Functions.

JSONPath - XPath for JSON


XPath


XML Path Lanaguage (XPath)