Commit Graph

16 Commits

Author SHA1 Message Date
Conrad Hoffmann 25e67b2f9c Switch to kingpin command line parser
Unfortunately this is a breaking change, as this means going from
`-config.file` to `--config.file` syntax, but it needs to happen
eventually. It better aligns the IPMI exporter with the rest of the
Prometheus eco-system.

As a first benefit, expose the command line parameters that control the
logging library.
2019-02-20 20:11:49 +01:00
Conrad Hoffmann b478aaf12e Remove unimplemented version flag
This was a leftover from when the exporter used more of the Prometheus
build tooling, which was eventually deemed overkill for such a small
project (at least until it has matured a bit).

There is currently no versioning of any significance anyways, so remove
it for now.

This fixes #15.
2019-02-15 11:33:15 +01:00
Conrad Hoffmann 158dc6fd50
Merge pull request #12 from soundcloud/bitfehler/vendor-update
Update all vendored dependencies
2018-09-21 15:53:01 +02:00
Conrad Hoffmann 3333a7eff3
Merge pull request #11 from soundcloud/bitfehler/local-ipmi
Support collecting local IPMI metrics
2018-09-21 13:53:39 +02:00
Conrad Hoffmann 1e16da97c1 Minor style fixes 2018-09-21 11:41:59 +02:00
Conrad Hoffmann 6ad612170a Update all vendored dependencies 2018-09-20 16:45:47 +02:00
Conrad Hoffmann 2c927eb68e Support collecting local IPMI metrics
This enables the standard `/metrics` endpoint. A scrape will trigger the
collection of IPMI metrics from the local machine (that the exporter is
running on).
2018-09-20 16:27:03 +02:00
Conrad Hoffmann 49612613b7
Merge pull request #9 from fahlke/enhance-reload-http-response
fixes soundcloud/ipmi_exporter#8
2018-08-15 16:08:53 +02:00
Alexander Fahlke c6395bd203 reverted changes in gitignore 2018-08-10 18:07:29 +02:00
Alexander Fahlke ee3429f2fd fixes soundcloud/ipmi_exporter#8 2018-08-10 17:42:19 +02:00
Conrad Hoffmann ab14984e9a Fix return value in happy path
This fixes #7.
2018-08-03 16:24:49 +02:00
Conrad Hoffmann 109c7ca99c
Merge pull request #6 from soundcloud/bitfehler/collectors
Handle tool-specific failures more gracefully
2018-08-02 13:58:17 +02:00
Conrad Hoffmann 9fb5f7296c Handle tool-specific failures more gracefully
Instead of failing hard and not returning any metrics at all if just one
(or two) of the three calls to IPMI tools fail, return whatever data was
properly received and add a `collector` label to the `ipmi_up` metric
indicating which tools failed.

This is only a small step towards the concept of "collectors" like they
exist e.g. in the node exporter, but it should help solve #1. Additional
functionality, like disabling certain collectors, can be built on top of
this.

Currently, an error in the `ipmi` collector is always logged as an error,
In the `dcmi` and `bmc` collectors, an error retrieving the data is only
logged as debug output, but an error processing retrieved data is logged
as an error. This should cover most use cases and will be improved upon
once more work is done to make the collectors selectable per scrape.
2018-07-31 09:24:54 +02:00
Conrad Hoffmann a22a7c65c6
Merge pull request #5 from soundcloud/bitfehler/tmp-config-file
Use config file instead of command line arguments
2018-07-26 16:46:05 +02:00
Conrad Hoffmann e11e76ed5c Use config file instead of command line arguments
Use a named pipe with 0600 permissions to pass the credentials to
FreeIPMI instead of using the command line, which certainly constitutes
bad security practice.

Template the `driver-type` while at it to potentially support local IPMI
at some point.
2018-07-26 16:14:26 +02:00
Conrad Hoffmann 670b92c799 Initial public release 2018-05-24 16:28:06 +02:00