go get blitiri.com.ar/go/prometheus-expvar-exporter
The exporter is configured using a toml file.
# Address to listen on. Prometheus should be told to scrape this. listen_addr = ":8000" # Expvar target. [server] url = "http://localhost:2222/debug/vars"
By default, the exporter will try to auto-convert all expvars. It is only able to auto-convert float and boolean expvars without labels. The configuration allows for manual set up of conversion, and label support.
See config.toml for more details and an example.