node_exporter/collector/fixtures
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>
2021-08-19 14:04:21 +02:00
..
ethtool ethtool: Expose node_ethtool_info metric 2021-08-16 16:09:35 +02:00
proc Added conntrack statistics metrics (#1155) 2021-06-23 11:52:43 +02:00
qdisc Add qdisc collector for Linux (#580) 2017-05-23 11:55:50 +02:00
textfile Treat custom textfile metric timestamps as errors (#769) 2018-02-27 19:43:38 +01:00
usr/lib Add os release collector 2021-08-19 14:04:21 +02:00
wifi Update wifi stats to support multiple stations (#977) (#980) 2018-07-16 16:02:25 +02:00
e2e-64k-page-output.txt Add os release collector 2021-08-19 14:04:21 +02:00
e2e-output.txt Add os release collector 2021-08-19 14:04:21 +02:00
ip_vs_result.txt Ipvs firewall mark (#1455) 2019-08-27 14:24:11 +02:00
ip_vs_result_lbs_local_address_local_port.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
ip_vs_result_lbs_local_port.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
ip_vs_result_lbs_none.txt Add flag to aggr ipvs metrics to avoid high cardinality metrics (#1709) 2020-06-02 10:52:00 +02:00
sys.ttar Merge branch 'master' into nvme 2021-07-12 17:09:51 +02:00