[Hawkular-dev] java-based prometheus metrics scraper

John Mazzitelli mazz at redhat.com
Mon Apr 11 21:00:32 EDT 2016


FYI: I finished a Java-based Prometheus scraper - seems to be working. It is just code that scrapes any remote Prometheus endpoint given a URL and let's you easily walk the metric data for further processing (like, if you want to insert that data into Hawkular Metrics or if you want to dump the data in XML or JSON format - the CLI does this today, see below). I'll eventually blog about this, but not until I actually merge it into master. It's in my branch right now here:

https://github.com/hawkular/hawkular-agent/tree/mazz/hwkagent-66-prometheus/prometheus-scraper

This also includes a CLI tool - build the scraper maven module and you'll get an uber-jar that let's you scrape a remote Prometheus endpoint and dump the metric data in XML, JSON, or simple form. See the README.md for more.

Now I just have to figure out how to integrate this into the Hawkular WildFly Agent :-)


More information about the hawkular-dev mailing list