How to expose custom metrics from HTTP response

18 Views Asked by At

Good morning, I need some help solving the following problem:

The solution I want to monitor does not provide ready-made metrics for Prometheus, but it does provide a whole series of APIs. For example, at the endpoint www.example.com/api/license, the HTTP response contains a value indicating the current credit consumption for that particular licence. How can we go about scraping this value from the HTTP response and expose it as a metric? Blackbox exporter be useful in this regard? If yes, how?

Thanks in advance

I tried to use blackbox, but I have not been able to scrape the result.

0

There are 0 best solutions below