title: Does Prometheus allow you to scrape JSON information from an endpoint?
body: <p>I am using Prometheus to instrument a Node.js application for monitoring. I am currently using the following Node.js client for instrumentation:</p>
  
  <p><a href="https://github.com/siimon/prom-client" rel="noreferrer">prom-client</a></p>
  
  <p>I have everything configured to gather and collect default metrics from my Node.js application and the monitoring is working as expected. I want to know if it is possible for Prometheus to scrape JSON from an endpoint that my application exposes. </p>
  
  <p>For example, the Node.js application has a health check endpoint (/health), that returns simple JSON data (boolean values or 0/1) about the overall health of the application as well as it's dependencies. Can I configure Prometheus and/or the prom-client to scrape the JSON from the health endpoint and then record metrics based on that information?</p>