From fd14385581e4f3f8285442a0e1cc17d320d35fa9 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 28 Nov 2020 10:58:02 +0000 Subject: prometheus-node-exporter: Enable the textfile collector. * gnu/services/monitoring.scm (): Add textfile-directory. (prometheus-node-exporter-textfile-directory, prometheus-node-exporter-activation): New procedures. (prometheus-node-exporter-shepherd-service): Pass --collector.textfile.directoryto the service. (prometheus-node-exporter-service-type): Extend the activation service type. * doc/guix.texi (Prometheus Node Exporter Service): Document. --- doc/guix.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index b5340aa368..13e0dcf6b7 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -22038,6 +22038,11 @@ The prometheus-node-exporter package to use. @item @code{web-listen-address} (default: @code{":9100"}) Bind the web interface to the specified address. +@item @code{textfile-directory} (default: @code{"/var/lib/prometheus/node-exporter"}) +This directory can be used to export metrics specific to this machine. +Files containing metrics in the text format, with the filename ending in +@code{.prom} should be placed in this directory. + @end table @end deftp -- cgit 1.4.1