Commit Graph

106 Commits

Author SHA1 Message Date
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
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
Conrad Hoffmann
2ae0db3934 Misc doc fixes for README and example configs 2020-07-26 17:16:30 +02:00
Conrad Hoffmann
35a6530c50 Document new "system firmware version" in BMC info 2020-07-26 16:46:54 +02:00
Conrad Hoffmann
2c6a73b151 Add system firmware version to BMC info metric
Add the "system firmware version" (i.e. the host's "BIOS version", as
opposed to the BMC firmware version) as a label to the `bmc_info`
metric.

This fixes #51.
2020-07-26 16:39:08 +02:00
Conrad Hoffmann
ef4e20a936
Merge pull request #49 from cdn77/detect-lan-mode
Add new metric config_lan_mode
2020-07-24 15:32:30 +02:00
Jakub Chábek
534775f13a Add new metric config_lan_mode 2020-06-30 10:40:54 +02:00
Conrad Hoffmann
26628185da Update all dependencies 2020-04-22 22:58:50 +02:00
Conrad Hoffmann
07736995e0 Update Makefile.common to latest version 2020-04-22 22:58:50 +02:00
Conrad Hoffmann
0aa63d4c21 Add SEL collector
It exposes two metrics about the IPMI system event log (SEL), the
current number of entries stored in it and the free space for new
records. The collector is not enabled by default, it has to be
explicitly enabled in the config.

Related to #41.
2020-04-22 22:58:29 +02:00
Conrad Hoffmann
7d7e33dc93 Log error if pipe deletion fails
Hopefully this helps to shed some light on #42.
2020-03-06 09:56:31 +01:00
Conrad Hoffmann
aecd42dbb0 Update dependencies 2020-02-14 15:08:53 +01:00
Conrad Hoffmann
3b9965040c
Merge pull request #44 from cawamata/master
add ipmi-chassis info to README.md
2020-02-14 14:09:18 +01:00
cawamata
fff7d37cc8
add ipmi-chassis info to README.md 2020-01-29 09:13:23 +09:00