diff options
author | Christopher Baines <mail@cbaines.net> | 2020-11-28 10:58:02 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-11-28 11:59:37 +0000 |
commit | 891f3670fd9bffc6dfa8ad46ed53e62a408f9564 (patch) | |
tree | 172993cc6d943afce6a9696f0e464013a05934e3 /doc/guix.texi | |
parent | ed81d96d77978205ff66e83ddaeec4914f7aa887 (diff) | |
download | guix-891f3670fd9bffc6dfa8ad46ed53e62a408f9564.tar guix-891f3670fd9bffc6dfa8ad46ed53e62a408f9564.tar.gz |
monitoring: Enable the Prometheus node exporter textfile collector.
* gnu/services/monitoring.scm (<prometheus-node-exporter-configuration>): 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.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index ed41091cae..6cd65b8739 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -21913,6 +21913,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 |