Commit Graph

118 Commits

Author SHA1 Message Date
Conrad Hoffmann 17923cc061 Make kingping write to stdout
The pros and cons are debatable, but this brings IPMI exporter in line
with most of the other Prometheus tools, so hooray for consistency.

Fixes #97
2022-02-21 20:50:36 +01:00
Conrad Hoffmann f69b2a1642
Merge pull request #98 from k0ste/help
Added target to debug logs
2022-02-21 20:46:14 +01:00
Konstantin Shalygin 7d129e6750
Added target to debug logs
When we need to debug special target on exporter among dozens of hosts - target is necessary for greps

Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
2022-01-21 14:43:48 +03:00
Conrad Hoffmann 83cf88dcc3
Merge pull request #96 from dswarbrick/respect-log-level-flag
Instantiate logger after parsing log.level command-line flag
2022-01-11 20:32:31 +01:00
Conrad Hoffmann b753455f83
Merge pull request #93 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-01-11 20:31:08 +01:00
Conrad Hoffmann abcfdf3569
Merge pull request #89 from tomhughes/fan-percent
Add support for fan sensors which report as a percentage
2022-01-11 20:30:43 +01:00
Daniel Swarbrick 02c3a7514c
Instantiate logger after parsing log.level command-line flag
promlogConfig does not need to be a global var either.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2022-01-03 19:56:54 +01:00
prombot de30be4946 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-12-16 00:01:57 +00:00
Conrad Hoffmann f6071edfa9
Merge pull request #91 from mnaser/patch-1
Add arm64 builds
2021-12-10 20:01:45 +01:00
Conrad Hoffmann 43f2978543 Use buffered channel for signal handling 2021-12-10 19:59:30 +01:00
Conrad Hoffmann ffd2720d1b Remove ineffective assignment 2021-12-10 19:59:30 +01:00
Conrad Hoffmann e1906fa46c Satisfy linter
I don't see what else to do with the messages at this point if logging
were to fail...
2021-12-10 19:59:30 +01:00
Conrad Hoffmann 2c787083a3 Do not ignore potential error 2021-12-10 19:59:30 +01:00
Conrad Hoffmann a30b3518fe Silence linter error 2021-12-10 19:59:30 +01:00
Conrad Hoffmann e9d24d733c Remove unused struct 2021-12-10 19:59:30 +01:00
Conrad Hoffmann 12d0f817b7
Merge pull request #92 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2021-12-10 19:59:20 +01:00
Conrad Hoffmann e596edb616
Merge pull request #88 from snaar/master
fix unsupported value type in debug logs due to attempting to log structs directly
2021-12-10 19:55:05 +01:00
prombot 607a6e6377 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-12-10 00:01:58 +00:00
Conrad Hoffmann 6b01577a8f
Merge pull request #83 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2021-12-09 21:14:25 +01:00
Conrad Hoffmann 5d526bb308
Merge pull request #78 from oliverpool/patch-1
doc: timeout must be greater than 1000
2021-12-09 21:13:57 +01:00
Mohammed Naser 3f2dde699b Add arm64 builds
This patch adds `arm64` builds.

Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2021-11-29 12:13:57 +04:00
Tom Hughes 5d7b5cbb57 Add support for fan sensors which report as a percentage
Fan sensors on HP servers report speed as a percentage of the
maximum instead of a raw RPM value.

Signed-off-by: Tom Hughes <tom@compton.nu>
2021-11-14 10:45:57 +00:00
snaar 6cf04baf94 fix unsupported value type in debug logs due to attempting to log structs directly
Signed-off-by: snaar <snaar@snaar.net>
2021-11-09 00:47:53 -05:00
Conrad Hoffmann b806738818
Merge pull request #82 from prometheus-community/superq/promlog
Switch logging to promlog
2021-09-30 11:30:36 +02:00
prombot fdf79b3b95 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-09-22 00:02:11 +00:00
SuperQ 70b78ffa78
Switch logging to promlog
Replace deprecated common/log with common/promlog.
* Update Go modules.

Signed-off-by: SuperQ <superq@gmail.com>
2021-09-21 14:44:11 +02:00
Ben Kochie 5f65da841e
Merge pull request #80 from prometheus-community/superq/community
Update for Prometheus Community
2021-09-21 13:53:38 +02:00
SuperQ e649afb008
Update for Prometheus Community
* Update Makefile.common from prometheus/prometheus.
* Switch from Cirrus to CircleCI.
* Add CHANGELOG.md and VERSION.
* Drop inline /vendor.
* Update references to old github URL.
* Update copyrights.
* Update Go version.
* Skip building on aix (undefined: syscall.Mkfifo)

Signed-off-by: SuperQ <superq@gmail.com>
2021-09-21 13:42:22 +02:00
Ben Kochie 45f81e182c
Merge pull request #81 from prometheus-community/superq/circleci
Switch to CircleCI
2021-09-21 12:26:24 +02:00
SuperQ 2d82d22783
Switch to CircleCI
* Add CircleCI config.
* Remove old Cirrus config.
* Update to Go 1.17.

Signed-off-by: SuperQ <superq@gmail.com>
2021-09-21 12:22:30 +02:00
oliverpool 09cfb9d02f
doc: timeout must be greater than 1000 2021-08-04 16:46:08 +02:00
Conrad Hoffmann d83b49ac6c
Merge pull request #76 from xibolun/master
Update doc/configuration.md
2021-06-24 17:45:33 +02:00
pengganyu 5811015efd Fix configuration: at 2.26+ prometheus versions, params should be list, not k/v 2021-06-21 10:00:22 +08:00
pengganyu b4566e080b Fix configuration: at 2.26+ prometheus versions, params should be list, not k/v 2021-06-21 09:58:29 +08:00
Conrad Hoffmann 178b38f32d Update Makefile.common from Prometheus project 2021-06-01 22:48:04 +02:00
Conrad Hoffmann 67041ef633 The great refactoring
- Move every collector into its own file
- Move FreeIPMI code into own package
- Allow more customization of commands executed by collectors
- Split up documentation, so README is a little less overwhelming

A single commit message does not do justice to the amount of changes
here, but hey... :)
2021-06-01 22:38:23 +02:00
Conrad Hoffmann 0dd6487f4e Update deps 2021-05-11 18:37:08 +02:00
Conrad Hoffmann dbe7c2b164
Merge pull request #66 from ainamori/fixed_make_docker
Failed COPY ipmi_exporter from=builder - again
2021-02-22 10:17:05 +01:00
Akira Inamori 4a065bdeb2 change builder version 2021-02-20 12:18:54 +09:00
Conrad Hoffmann 0b40276f1f Output events in hex (bitmask), not string
The events are currently not used for anyways, and this avoids the case
where `ipmimonitoring` outputs several events quoted in a way that is at
best borderline CSV-compatible.

Fixes #62
2021-02-19 16:19:46 +01:00
Conrad Hoffmann 77e404a02c
Merge pull request #67 from soundcloud/bitfehler/bmc-info-recover
Use partial bmc-info output even if it fails
2021-02-19 16:15:36 +01:00
Conrad Hoffmann 1a7c9d6189 Move error logging to same level as error handling
The `freeipmiOutput` function is used many in places. It already returns
an error if it encounters one, so it should leave the handling as well
as the severity of the logging of the error to the caller.

More specifically, the case has come up where `bmc-info` may fail, but
still provide partial results that the collector can use. This commit
allows to do so without littering the log with errors.
2021-02-19 16:08:09 +01:00
Akira Inamori abf9350445 Update gobuilder & fixed go binary name 2021-02-19 15:02:25 +09:00
Conrad Hoffmann 27f27b902f Try to parse bmc-info even if command failed
This is a workaround for an issue described in #57. The bmc-info command
might produce usable output minus the system firmware revision, but then
choke on that. Try to recover in that scenario by attempting to parse
the output even if the command failed. Since the system firmware
revision is already optional, this should at least produce all other
values.

It is not pretty, but it avoids both folks having to change their
configs as well a second round-trip, which can be quite expensive in
IPMI.
2021-02-16 18:36:17 +01:00
Conrad Hoffmann a138b9ae59
Merge pull request #60 from ainamori/fixed_builder_path
Fixed #59
2021-02-12 16:21:28 +01:00
Akira Inamori 7a7a44580e Fixed #59 2020-11-25 10:45:52 +09:00
Conrad Hoffmann 57c0f966d0 Make system firmware version optional in BMC info
There are systems that do not make this available, so don't make the
entire collector fail if only this metric can not be read. Instead, set
it to "N/A" if it cannot be determined.

This fixes #57.
2020-10-22 18:09:14 +02:00
Conrad Hoffmann 1561913027 Update Makefile.common to latest version 2020-07-26 17:42:06 +02:00
Conrad Hoffmann 29354b0eb0 Document magic values in metric description
See https://www.supermicro.com/support/faqs/faq.cfm?faq=28159
2020-07-26 17:28:12 +02:00
Conrad Hoffmann ae2992c60b Update all dependencies 2020-07-26 17:24:32 +02:00