Tree:
3d9ee5d9cc
aix-ppc64
bjk/fpm
discordianfish-patch-1
fish/remove-docker-hub-references
fixpanic
master
mixin-fix-cpu-usage
pgier/disable-default-collectors
readme-remove-misleading-plugins
release-0.15
release-0.16
release-0.17
release-0.18
release-1.0
release-1.1
release-1.2
release-1.3
release-1.4
release-1.6
release-1.8
repo_sync
revert-1677-expose-tls-copy
security-dot-md
superq/buildkite
superq/fs_include
superq/goimports
superq/os_collector
superq/refactor_kingpin
superq/replace_load_metric
superq/stylecheck
superq/systemd_filter
superq/systemd_shutdown
superq/unit_type
superq/v2
0.10.0
0.11.0
0.12.0
0.12.0rc1
0.12.0rc2
0.12.0rc3
0.13.0-rc.2
0.6.0
0.7.0
0.7.1
0.8.0
0.8.1
0.9.0
v0.13.0
v0.13.0-rc.1
v0.13.0-rc.2
v0.14.0
v0.14.0-rc.1
v0.14.0-rc.2
v0.15.0
v0.15.1
v0.15.2
v0.16.0
v0.16.0-rc.0
v0.16.0-rc.1
v0.16.0-rc.2
v0.16.0-rc.3
v0.17.0
v0.17.0-rc.0
v0.18.0
v0.18.1
v1.0.0
v1.0.0-rc.0
v1.0.0-rc.1
v1.0.1
v1.1.0
v1.1.1
v1.1.2
v1.2.0
v1.2.1
v1.2.2
v1.3.0
v1.3.1
v1.4.0
v1.4.0-rc.0
v1.4.1
v1.5.0
v1.6.0
v1.6.1
v1.7.0
v1.8.0
v1.8.1
v1.8.2
${ noResults }
1 Commits (3d9ee5d9cc4545c7aaccc0f282f59478fe128ed1)
Author | SHA1 | Message | Date |
---|---|---|---|
Benjamin Drung | b6215e649c |
Add os release collector
Currently Node Exporter has a metric called `node_uname_info` which of course exposes uname info. While this is nice, it does not help if you are running different OSes which could have similar uname info. Therefore parse `/etc/os-release` or `/usr/lib/os-release` and expose a `node_os_info` metric which provide information regarding the OS release/version of the node. Also expose the major.minor part of the OS release version as `node_os_version`. Since the os-release files will not change often, cache the parsed content and only refresh the cache if the modification time changes. This `os` collector will read files outside of `/proc` and `/sys`, but the os-release file is widely used and the format is standardized: https://www.freedesktop.org/software/systemd/man/os-release.html Bug: https://github.com/prometheus/node_exporter/issues/1574 Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com> |
3 years ago |