diff options
author | Christopher Baines <mail@cbaines.net> | 2020-11-28 10:41:05 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-12-07 09:08:09 +0000 |
commit | fa0975ad715916c4c2ccabbb0c493e83033d8945 (patch) | |
tree | 6a169700184811ffd05672b74ffe3763e5aaf4af | |
parent | 6574298e4e8ef54245ef49251aac6a7a16b71d2a (diff) | |
download | guix-fa0975ad715916c4c2ccabbb0c493e83033d8945.tar guix-fa0975ad715916c4c2ccabbb0c493e83033d8945.tar.gz |
services: prometheus-node-exporter: Use a log file.
This makes the logs easier to find and read.
* gnu/services/monitoring.scm (prometheus-node-exporter-shepherd-service):
Pass #:log-file to make-forkexec-constructor.
-rw-r--r-- | gnu/services/monitoring.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm index 7ebc3f3f6f..faa1e71dcb 100644 --- a/gnu/services/monitoring.scm +++ b/gnu/services/monitoring.scm @@ -153,7 +153,8 @@ HTTP.") (list #$(file-append package "/bin/node_exporter") "--web.listen-address" #$web-listen-address) #:user "prometheus-node-exporter" - #:group "prometheus-node-exporter")) + #:group "prometheus-node-exporter" + #:log-file "/var/log/prometheus-node-exporter.log")) (stop #~(make-kill-destructor))))))) (define prometheus-node-exporter-service-type |