node_exporter --collector.textfile.directory=/var/lib/node_exporter/textfile

Category: Monitoring & Observability

node_exporter --collector.textfile.directory=/var/lib/node_exporter/textfile

Enable the node exporter textfile collector

Enables the textfile collector, which serves metrics from .prom files dropped into the given directory. Cron jobs write custom metrics there, such as backup duration or pending update counts, and the exporter exposes them alongside its built-in ones. The directory must exist and be readable by the exporter user.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.