简体   繁体   中英

Reading data from prometheus into Java application

Anyone has tried reading the data from prometheus into a java application.

I am looking to process the metrics data in prometheus and derive some insights out of it.

Unable to find any driver or connector to connect to prometheus, except the HTTP API which prometheus provides.

https://prometheus.io/docs/prometheus/latest/querying/api/

So far I only used Grafana to read and render data from Prometheus.

With that I have not tested this client , but it seems there are more than none out there.

Otherwise, it should be quite straightforward to run HTTP GET requests using HttpClient , then parsing the result using Genson .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM