node_exporter/text_collector_examples
Saj Goonatilleke d546916c6b Add the inotify-instances text collector (#1186)
This is an alternative take on the embedded inotify collector:

https://github.com/prometheus/node_exporter/pull/988

The proposed embedded collector was not accepted for inclusion because
it was not possible for a single unprivileged node_exporter process to
detect inotify resource utilisation in other user domains.

This text collector works around the problem by giving the operator a
choice between the following:

  - Run only the text collector as root to gain visibility over all
    processes on the system.

  - Run one or more instances of the text collector as an unprivileged
    user to gain visibility over subsets of the system.

In either case, the data generated by this collector can be useful when
hunting down inotify instance leaks -- and when confirming the
resolution of such leaks.

Signed-off-by: Saj Goonatilleke <sg@redu.cx>
2019-02-27 01:03:25 +01:00
..
apt.sh Fix apt.sh syntax (#811) 2018-02-05 20:43:25 +01:00
btrfs_stats.py Add a sample btrfs stats collector script (#1200) 2018-12-21 14:10:03 +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
inotify-instances Add the inotify-instances text collector (#1186) 2019-02-27 01:03:25 +01:00
ipmitool remove "-n" flag from /usr/bin/awk (#1269) 2019-02-23 18:37:06 +01:00
md_info.sh Add metrics exposing extended md RAID info (#958) 2018-08-18 08:57:51 +00:00
md_info_detail.sh add md_info_detail.sh (#1204) 2019-02-10 15:20:42 +01: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 add md_info_detail.sh (#1204) 2019-02-10 15:20:42 +01:00
storcli.py ADD Cachevault_Info.Temp, being a distinct phy component, I think it's worth monitoring (#1268) 2019-02-21 14:12:45 +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