node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
Scripts for node-exporter's textfile collector
This PR removes the `md_info` and `md_info_detail` collector scripts because their functionality is now included in node_exporter since v1.0.0. closes #24 closes #25 closes #48 closes #92 For remaining problems,...
Looking at the code in smartmon.sh, [here](https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/8eeeffb362c31af4427b21a84e2ef6cbdddfd0c3/smartmon.sh#L121): ``` while read -r line; do info_type="$(echo "${line}" | cut -f1 -d: | tr ' ' '_')" case "${info_type}" in … Logical_Unit_id) lun_id="${info_value}"...
The ATA Device Statistics can expose additional values on top of those already reported among the SMART attributes. ADATA SP600NS34 SSDs, for example, only report their endurance indicator in the...
the peer labels where adapted from a node_exporter PR see https://github.com/prometheus/node_exporter/pull/1317 Signed-off-by: Gordon Bleux
Using sponge to atomically write files does not work if the environment variable `TMPDIR` is unset or located on a different file system. See its [man page](https://salsa.debian.org/nsc-guest/moreutils/blob/master/sponge.docbook#L73). On default setups...
The function [datetime.utcnow()](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow) returns naive instances which are assumed to use the current locale when converted to timestamps using [datetime.timestamp()](https://docs.python.org/3/library/datetime.html#datetime.datetime.timestamp). As a result the timezone offset is added twice leading...
This adds a script to parse the values of [xentop](https://wiki.xenproject.org/wiki/Xentop(1)) as prometheus metrics. gawk is probably needed for `FPAT`, which is used because xentop reports unset limits as `no limit`,...
For some alerts, it is important to understand what type of disk - hdd or ssd.
Using the latest apt.sh script in node exporter. [specific version](https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/blob/13e5246f7f66e48506c12ecccbe41e42724e0fcd/apt.sh) Node Exporter Logs: `level=error msg="error gathering metrics: [from Gatherer #2] collected metric \"apt_upgrades_pending\" { label: label: gauge: } was collected...
In comparison to the existing `nvme_metrics.sh` collector, this one: - Adds `firmware`, `serial`, `model` and `sector_size` labels. - Adds useful TYPE and HELP messages for every series. - Exposes nearly...