summaryrefslogtreecommitdiff
path: root/packages/telegraf
diff options
context:
space:
mode:
Diffstat (limited to 'packages/telegraf')
-rw-r--r--packages/telegraf/Jenkinsfile2
-rwxr-xr-xpackages/telegraf/build.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/telegraf/Jenkinsfile b/packages/telegraf/Jenkinsfile
index 95781923..08ef10c2 100644
--- a/packages/telegraf/Jenkinsfile
+++ b/packages/telegraf/Jenkinsfile
@@ -23,7 +23,7 @@
// and not via a DEB package
def pkgList = [
['name': 'telegraf',
- 'scmCommit': 'v1.23.1',
+ 'scmCommit': 'v1.28.3',
'scmUrl': 'https://github.com/influxdata/telegraf.git',
'buildCmd': 'cd ..; ./build.sh'],
]
diff --git a/packages/telegraf/build.sh b/packages/telegraf/build.sh
index 46dfc88a..2ba511d0 100755
--- a/packages/telegraf/build.sh
+++ b/packages/telegraf/build.sh
@@ -21,4 +21,7 @@ cp ${PLUGIN_DIR}/outputs/all/all.go ${SRC}/plugins/outputs/all/all.go
echo "I: Build Debian ${BUILD_ARCH} package"
cd ${SRC}
export PATH=/opt/go/bin:$PATH
+
+# Generate default telegraf config
+go run ./cmd/telegraf config > etc/telegraf.conf
LDFLAGS=-w make "${BUILD_ARCH}.deb"