node_exporter: Send output to syslog.

This is consistent with the way the logs of Prometheus itself are
treated.
This commit is contained in:
Andrew Barchuk 2021-08-05 19:43:30 +02:00 committed by Duncan Overbruck
parent e0c326422b
commit 36eb20b1ae
3 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec vlogger -p daemon.info -t node_exporter

View file

@ -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

View file

@ -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}