feat: add FRU (Field Replaceable Unit) collector#322
Open
Zayden-R wants to merge 1 commit into
Open
Conversation
Adds a new ipmi-fru collector that exposes hardware inventory data as the ipmi_fru_info Prometheus metric with labels: product_name, product_serial, product_manufacturer, product_part_number, board_product_name, and chassis_type. This is an initial implementation covering the core FRU fields from the System Board entry. It does not yet include per-device FRU entries (PSUs, backplanes, NICs), PSU wattage parsing, or manufacturing dates as discussed in prometheus-community#127 -- those can be added as follow-up work. Changes: - collector_fru.go: New FRU collector following existing BMC pattern - freeipmi/freeipmi.go: 6 FRU regex patterns + getter functions - config.go: Register FRUCollectorName in GetInstance() Tested on Dell PowerEdge R730, RHEL 9.5, FreeIPMI 1.6.14. Closes prometheus-community#127 Signed-off-by: Zayden R <Zayden-R@users.noreply.github.com>
7b319fb to
793517d
Compare
bitfehler
reviewed
Apr 28, 2026
bitfehler
left a comment
Contributor
There was a problem hiding this comment.
Hi,
thanks, this looks good. Could I ask you to add a very brief section about this to docs/metrics.md and also add this to the # Available collectors are ... comment in both ipmi_local.yml and ipmi_remote.yml so that people will know/learn about it?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
ipmi-frucollector that exposes hardware inventory data as theipmi_fru_infoPrometheus metric.Closes #127
What this implements
collector_fru.gofollowing the existingcollector_bmc.gopatternfreeipmi/freeipmi.goconfig.goviaGetInstance()switchproduct_name,product_serial,product_manufacturer,product_part_number,board_product_name,chassis_typeN/A, never errorsWhat is NOT included from #127
This is the core implementation. The following items from the original request are left as follow-up work:
collector_fru_native.go)These can each be added incrementally in future PRs.
Tested on
Example config
Signed-off-by: Zayden R Zayden-R@users.noreply.github.com