Exports jstat result for Prometheus consumption.
How to build
go get github.com/prometheus/client_golang/prometheus
go get github.com/prometheus/log
go build jstat_exporter.go
Help on flags of jstat_exporter:
-jstat.path string
jstat path (default "/usr/bin/jstat")
-jps.path string
jps path (default "/usr/bin/jps")
-target string
target jps name
-web.listen-address string
Address on which to expose metrics and web interface. (default ":9010")
-web.telemetry-path string
Path under which to expose metrics. (default "/metrics")
Tested on JDK8