I made some changes to the build infrastructure, looking to do the same as the other Prometheus exporters do, using promu. You will have to do some extra changes for sure.
I hope this is well for you, and I am also open for code-reviews, too.
See how it looks like now,
$ build/ipmi_exporter -h
Usage of build/ipmi_exporter:
-ipmi.path string
Path to the ipmi binary (default "ipmitool")
-log.format value
Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true" (default "logger:stderr")
-log.level value
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]
-version
Show version information and exit
-web.listen string
Address on which to expose metrics and web interface. (default ":9289")
-web.path string
Path under which to expose metrics. (default "/metrics")
$ build/ipmi_exporter -version
ipmi_exporter, version 2.2.0 (branch: buildinfo, revision: b3b95f0a77b67c18f195510f04a8d73986be4c8e)
build user: trangoni@sargas
build date: 20170601-13:57:56
go version: go1.8.3
Hi!
I made some changes to the build infrastructure, looking to do the same as the other Prometheus exporters do, using promu. You will have to do some extra changes for sure. I hope this is well for you, and I am also open for code-reviews, too.
See how it looks like now,