summaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-11-28 10:41:05 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-07 09:08:09 +0000
commitfa0975ad715916c4c2ccabbb0c493e83033d8945 (patch)
tree6a169700184811ffd05672b74ffe3763e5aaf4af /gnu/services
parent6574298e4e8ef54245ef49251aac6a7a16b71d2a (diff)
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.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/monitoring.scm3
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