node_exporter/text_collector_examples
dhewg 7c960fd683 smartmon.sh: add metric for active/low-power mode (#1192)
Add this new metric (where sda is active and sdb is in standby mode):
smartmon_device_active{disk="/dev/sda",type="sat"} 1
smartmon_device_active{disk="/dev/sdb",type="sat"} 0

Also skip further metrics if the drive is in a low-power mode. This
prevents spinning up disks just to get the metrics (which matches e.g.
debian's default behavior for smartd).

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-13 16:11:23 +01:00
..
apt.sh Fix apt.sh syntax (#811) 2018-02-05 20:43:25 +01:00
deleted_libraries.py Add mellanox_hca_temp text collector example (#1128) 2018-11-01 12:23:06 +01:00
directory-size.sh Fix metric name in directory size text collector example 2018-05-19 21:11:46 +02:00
ipmitool Fix spelling of celsius in IPMI example script (#967) 2018-06-08 19:21:19 +02:00
md_info.sh Add metrics exposing extended md RAID info (#958) 2018-08-18 08:57:51 +00:00
mellanox_hca_temp Add mellanox_hca_temp text collector example (#1128) 2018-11-01 12:23:06 +01:00
ntpd_metrics.py Add ntpd metrics from ntpq rv 2017-02-14 16:20:53 +01:00
pacman.sh Introduce example to get pending updates from pacman (#1114) 2018-11-05 22:27:57 +01:00
README.md Note how to get moreutils on FreeBSD (#1073) 2018-09-14 14:14:45 +02:00
smartmon.sh smartmon.sh: add metric for active/low-power mode (#1192) 2018-12-13 16:11:23 +01:00
storcli.py Handle 'Unknown' as measurement value. (#1113) 2018-11-23 16:29:56 +01:00

Text collector example scripts

These scripts are examples to be used with the Node Exporter Textfile Collector.

To use these scripts, we recommend using a sponge to atomically write the output.

<collector_script> | sponge <output_file>

Sponge comes from moreutils

For more information see: https://github.com/prometheus/node_exporter#textfile-collector