Update telegraf (#1642)

* Update telegraf.json to use new artifact directory

Recent (maybe just the current) version[s] of telegraf for windows use a versioned directory within the artifact rather than just "telegraf"

* add telegraf config env

* Update telegraf.json

Co-authored-by: Ross Smith II <ross@smithii.com>
This commit is contained in:
Ethan Bell 2020-12-11 14:25:52 -08:00 committed by GitHub
parent 8681095fa8
commit d170ad0329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,11 +7,14 @@
"64bit": { "64bit": {
"url": "https://dl.influxdata.com/telegraf/releases/telegraf-1.16.3_windows_amd64.zip", "url": "https://dl.influxdata.com/telegraf/releases/telegraf-1.16.3_windows_amd64.zip",
"hash": "85fb7b0f96f8d3c42848a651d84beb34f0b7101864496248891834b36b2196cc", "hash": "85fb7b0f96f8d3c42848a651d84beb34f0b7101864496248891834b36b2196cc",
"extract_dir": "telegraf" "extract_dir": "telegraf-1.16.3"
} }
}, },
"bin": "telegraf.exe", "bin": "telegraf.exe",
"persist": "telegraf.conf", "persist": "telegraf.conf",
"env_set": {
"TELEGRAF_CONFIG_PATH": "$persist_dir/telegraf.conf"
},
"checkver": { "checkver": {
"url": "https://portal.influxdata.com/downloads", "url": "https://portal.influxdata.com/downloads",
"regex": ">Telegraf v([\\d.]+)<" "regex": ">Telegraf v([\\d.]+)<"
@ -19,7 +22,8 @@
"autoupdate": { "autoupdate": {
"architecture": { "architecture": {
"64bit": { "64bit": {
"url": "https://dl.influxdata.com/telegraf/releases/telegraf-$version_windows_amd64.zip" "url": "https://dl.influxdata.com/telegraf/releases/telegraf-$version_windows_amd64.zip",
"extract_dir": "telegraf-$version"
} }
}, },
"hash": { "hash": {