In https://github.com/prometheus/prometheus/pull/1782 , we moved to a
custom flag set to avoid getting test flags into the main prometheus
binary. However, that removed the logging flags, too. This commit
updates the vendoring to a version of the log package that allows
adding the log flags to our flag set explicitly.
With the total optimized copy command. Assumes all vendored packages are
checked out in $GOPATH.
govendor list +v | awk '{print $2}' | while read dep; do echo $dep |
cut -d/ -f1-3; done | uniq | while read dep; do find
$GOPATH/src/$dep -name LICENSE -o -name NOTICE | grep -v vendor |
sed "s;$GOPATH/src/;;"; done | while read license; do [ -f
vendor/$license ] || cp $GOPATH/src/$license vendor/$license; done
Because the InfluxDB client library currently pulls in multiple MBs of
unnecessary dependencies, I have modified and cut up the vendored
version to only pull in the few pieces that are actually needed.
On InfluxDB's side, this dependency issue is tracked in:
https://github.com/influxdb/influxdb/issues/3447
Hopefully, it will be resolved soon.
If a password is needed for InfluxDB, it may be supplied via the
INFLUXDB_PW environment variable.