Skip to content

Comments

Fixed panic when parsing /proc/stat on 2.6.32-25-pve#39

Merged
grobie merged 1 commit intoprometheus:masterfrom
DSpeichert:master
Feb 7, 2015
Merged

Fixed panic when parsing /proc/stat on 2.6.32-25-pve#39
grobie merged 1 commit intoprometheus:masterfrom
DSpeichert:master

Conversation

@DSpeichert
Copy link
Contributor

Fixes issue described in #38
/proc/stat reports a blank line which needs to be ignored.
Old kernels misses one CPU time field, this needs to be ignored too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable-naming-wise, I've been trying to figure out what "ex" could mean (meaning that should probably be clarified). What's the intended meaning?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ex is expected, I felt like expectedFieldNum would be too long.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, ok... too many potential words starting with "ex" - this one didn't cross my mind :)

Maybe just "numFields"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you changed it to "expected..." now. Fine as well!

@juliusv
Copy link
Member

juliusv commented Feb 6, 2015

👍 Please squash and I'll merge. Thanks!

Fixes issue described in prometheus#38
/proc/stat reports a blank line which needs to be ignored.
Old kernels misses one CPU time field, this needs to be ignored too.
@DSpeichert
Copy link
Contributor Author

Done.

@grobie
Copy link
Member

grobie commented Feb 7, 2015

Thanks!

grobie added a commit that referenced this pull request Feb 7, 2015
Fixed panic when parsing /proc/stat on 2.6.32-25-pve
@grobie grobie merged commit 5bf5eef into prometheus:master Feb 7, 2015
bdrung added a commit to bdrung/node_exporter that referenced this pull request Aug 16, 2021
Add a `node_ethtool_info` metric to all ethtool devices to expose driver
information with following labels:

 * bus_info
 * driver
 * expansion_rom_version
 * firmware_version
 * version

This metric is useful to monitor the firmware version to be up-to-date.

Note: The version label might be malformed due to bug prometheus#39 in ethtool:
safchain/ethtool#39

Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
discordianfish pushed a commit that referenced this pull request Aug 16, 2021
Add a `node_ethtool_info` metric to all ethtool devices to expose driver
information with following labels:

 * bus_info
 * driver
 * expansion_rom_version
 * firmware_version
 * version

This metric is useful to monitor the firmware version to be up-to-date.

Note: The version label might be malformed due to bug #39 in ethtool:
safchain/ethtool#39

Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
tamcore pushed a commit to gitgrave/node_exporter that referenced this pull request Oct 22, 2024
Replace AUTHORS.md by an updated MAINTAINERS.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants