node_exporter: Send output to syslog.
This is consistent with the way the logs of Prometheus itself are treated.
This commit is contained in:
parent
e0c326422b
commit
36eb20b1ae
3 changed files with 4 additions and 2 deletions
2
srcpkgs/node_exporter/files/node_exporter/log/run
Executable file
2
srcpkgs/node_exporter/files/node_exporter/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec vlogger -p daemon.info -t node_exporter
|
|
@ -10,4 +10,4 @@
|
|||
[ -n "${USE_LOCAL_USER}" ] && : ${USER:=_node_exporter}
|
||||
[ -n "${USER}" ] && CHPST_USER="-u ${USER}"
|
||||
|
||||
exec chpst $CHPST_USER node_exporter ${RUNIT_COLLECTOR} ${LISTEN_ADDR} ${ARGS}
|
||||
exec chpst $CHPST_USER node_exporter ${RUNIT_COLLECTOR} ${LISTEN_ADDR} ${ARGS} 2>&1
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'node_exporter'
|
||||
pkgname=node_exporter
|
||||
version=1.1.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=go
|
||||
go_import_path="github.com/prometheus/node_exporter"
|
||||
go_ldflags="-X ${go_import_path}/version.Version=${version}
|
||||
|
|
Loading…
Reference in a new issue