Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose dmi info (as label?) #303

Closed
klausenbusk opened this issue Sep 15, 2016 · 3 comments · Fixed by #2131
Closed

Expose dmi info (as label?) #303

klausenbusk opened this issue Sep 15, 2016 · 3 comments · Fixed by #2131
Labels
enhancement platform/Linux Linux specific issue

Comments

@klausenbusk
Copy link
Contributor

klausenbusk commented Sep 15, 2016

Hello

We have roughly ~ 100 Linux boxes on different hardware (mostly different versions of Gigabyte Brix and Intel Nuc and a few other hardware combinations)

It could be useful if the dmi info was exposed as label. Kind of like node_uname_info
Maybe node_dmi_info{manufacturer="MICRO-STAR INTERANTIONAL CO.,LTD", product="MS-7368"}

For example this is what dmidecode --type system expose (found somewhere on google, I'm not at my Linux computer right now):

server1:/home/admin# dmidecode --type system
# dmidecode 2.8
SMBIOS 2.5 present.

Handle 0x0001, DMI type 1, 27 bytes
System Information
        Manufacturer: MICRO-STAR INTERANTIONAL CO.,LTD
        Product Name: MS-7368
        Version: 1.0
        Serial Number: To Be Filled By O.E.M.
        UUID: Not Present
        Wake-up Type: Power Switch
        SKU Number: To Be Filled By O.E.M.
        Family: To Be Filled By O.E.M.

Handle 0x0027, DMI type 12, 5 bytes
System Configuration Options
        Option 1: To Be Filled By O.E.M.
@SuperQ
Copy link
Member

SuperQ commented Sep 15, 2016

We're still unsure about exposing "inventory" metrics from the node_exporter. Some people are strongly against it, I personally think some of it is ok.

There are a couple issues with this specific request:

  • This would require we exec dmidecode.
  • This would require root privs.

These are things we don't want to do in the exporter.

I would recommend using a script that parses the output of dmidecode and produces the metric for use with the textfile collector. I could probably whip something up for this.

@bdrung
Copy link
Contributor

bdrung commented Aug 26, 2021

We like to expose the BIOS version as metric (to allow alerting about outdated versions). Since this information can be retrieved from /sys/class/dmi/id without root permission (unless you want to read the serial numbers), I created prometheus/procfs#409 as first step.

@SuperQ SuperQ reopened this Aug 26, 2021
@SuperQ
Copy link
Member

SuperQ commented Aug 26, 2021

Nice, I had no idea dmi had a sys interface.

@SuperQ SuperQ added platform/Linux Linux specific issue and removed wontfix labels Aug 26, 2021
bdrung added a commit to bdrung/node_exporter that referenced this issue Oct 27, 2021
Add a DMI collector to expose the Desktop Management Interface (DMI)
info from `/sys/class/dmi/id/`. This will expose information about the
BIOS, mainboard, chassis, and product.

Closes: prometheus#303
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
SuperQ pushed a commit that referenced this issue Oct 27, 2021
Add a DMI collector to expose the Desktop Management Interface (DMI)
info from `/sys/class/dmi/id/`. This will expose information about the
BIOS, mainboard, chassis, and product.

Closes: #303
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Add a DMI collector to expose the Desktop Management Interface (DMI)
info from `/sys/class/dmi/id/`. This will expose information about the
BIOS, mainboard, chassis, and product.

Closes: prometheus#303
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
oblitorum pushed a commit to shatteredsilicon/node_exporter that referenced this issue Apr 9, 2024
Add a DMI collector to expose the Desktop Management Interface (DMI)
info from `/sys/class/dmi/id/`. This will expose information about the
BIOS, mainboard, chassis, and product.

Closes: prometheus#303
Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement platform/Linux Linux specific issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants