diff --git a/README.md b/README.md index 129403b..d14ea70 100644 --- a/README.md +++ b/README.md @@ -16,5 +16,8 @@ entries to a second file: mail.* -/var/log/postfix_exporter_input.log ``` +There is also an option to collect the metrics via the systemd journal instead of a log file. + + Please refer to this utility's `main()` function for a list of supported command line flags. diff --git a/build_static.sh b/build_static.sh index 3c4851d..72897c4 100755 --- a/build_static.sh +++ b/build_static.sh @@ -1,16 +1,16 @@ #!/bin/sh -docker run -i -v `pwd`:/postfix_exporter alpine:edge /bin/sh << 'EOF' +docker run -i -v `pwd`:/postfix_exporter ubuntu:16.04 /bin/sh << 'EOF' set -ex # Install prerequisites for the build process. -apk update -apk add ca-certificates git go libc-dev -update-ca-certificates +apt-get update -q +apt-get install -yq git golang-go libsystemd-dev -# Build the postfix_exporter. +mkdir /go +export GOPATH=/go cd /postfix_exporter -export GOPATH=/gopath + go get -d ./... go build --ldflags '-extldflags "-static"' strip postfix_exporter