Commit Graph

311 Commits

Author SHA1 Message Date
Nerijus Baliūnas 5cb99391b1
chore: restart service if it is already running and upgraded via RPM (#9970) 2021-12-13 10:37:25 -07:00
Sebastian Spaink ea7b059549
chore: remove triggering update-config bot in CI (#10195) 2021-12-01 16:38:43 -06:00
Mya d5afd654c6
chore: update go version from 1.17.2 to 1.17.3 (#10073) 2021-11-09 08:28:38 -07:00
Joshua Powers 43017559fa
fix: remove release.sh script (#10030) 2021-10-29 15:46:09 -06:00
reimda 0ebd2f388d
chore: remove unused dockerfiles, add link in docs (#10013) 2021-10-29 13:43:38 -06:00
Sebastian Spaink 0088be7da1
fix: stop triggering share-artifacts on release/tags (#9996) 2021-10-27 10:49:20 -05:00
Alan Pope da11cd708e
fix: Allow for non x86 macs in Go install script (#9982) 2021-10-25 09:35:58 -06:00
Sebastian Spaink 8f35d74c5e
chore: update go to 1.17.2 (#9873) 2021-10-21 08:40:03 -06:00
Sebastian Spaink 47301e6ef4
chore: remove empty build.py (#9958) 2021-10-19 14:21:43 -05:00
Sebastian Spaink b7988d83d7
chore: stop testing with two versions of Go (#9909) 2021-10-13 13:18:33 -05:00
Sebastian Spaink 027647e3ed
chore: automate updating etc/telegraf.conf and etc/telegraf_windows.conf (#9684) 2021-09-21 13:53:18 -06:00
reimda 783945e55d
Update release.sh to include new builds on website (#9765) 2021-09-15 15:35:23 -06:00
Sebastian Spaink 779ed5ec42
chore: run ci tests in parallel and get test insights (#9686) 2021-09-14 16:42:59 -05:00
Sebastian Spaink 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Sebastian Spaink a1dae0d2c1
Update Go to v1.16.6 (#9542) 2021-07-26 20:39:23 -05:00
Sebastian Spaink 62715d158b
Fix Mac script to install go (#9345)
Co-authored-by: reimda <reimda@users.noreply.github.com>
2021-06-10 11:12:14 -05:00
pierwill d6ac4abfb8
fix: Verify checksum of Go download in mac script (#9335)
Adds a SHA256 check, which will we exit the script upon failure (with `set -e`).

Also edit comments.

Co-authored-by: pierwill <pierwill@users.noreply.github.com>
2021-06-08 10:24:21 -05:00
Sebastian Spaink 7a987306e5
Update Go to 1.16.5 (#9331) 2021-06-07 19:19:22 -05:00
Sebastian Spaink 9d163f6a83
Fix CI config to check if branch is master before skipping (#9140)
Related to: https://github.com/influxdata/telegraf/pull/9076

In order to support skipping a job depending on file changes, only works on non-master branches. This pull requests updates the config to check the current branch.
2021-04-16 16:24:50 -05:00
Sebastian Spaink 89f5e8a9d9
Update to Go 1.16.2 (#8989) 2021-03-16 15:23:44 -04:00
Sebastian Spaink f32230259c
Update to 1.16.1 (#8978) 2021-03-11 19:05:50 -06:00
David Bennett 1b7a52d0b6
Mac entry script: Add space before calling path so that zsh doesn't remove first character of path when prompting for update. (#8976)
* Add space before calling path so that zsh doesn't remove first character of path when prompting for update.

* Updated config.yml

* Update config.yml

* Update config.yml
2021-03-11 15:09:22 -05:00
David Bennett c1a6312ce3
Include DMG files when syncing release artifacts to AWS (#8972) 2021-03-11 12:19:35 -05:00
Sebastian Spaink 3af16aa885
Support Go version 1.16 (#8882)
* Support 1.16

* Use 1.16 in mod file

* update go.sum

* update go.mod after updating to 1.16 locally

* Fix go vet

* Remove exit

* Use require.NoError

* Only run tidy explicitly in "dep" job

* install 1.16 for go

* typo

* update xcode

* specific version not working

* Get 1.16 go formula

* Change brew call

* brew update

* typo

* Resolve go.sum conflict

* go mod tidy
2021-03-08 16:29:11 -06:00
David Bennett b6f043c0ee
Mac Packaging / Notarization (#8878)
* initial commit

* Updated config.yml

* Update mac-signing.sh

* Updated config.yml

* Updated config.yml

* Keep the .tar.gz artifact along with the signed and notarized DMG

* change to test temporarily

* for testing

* Updated config.yml

* Update config.yml

* Update config.yml
2021-03-05 10:14:01 -05:00
Sebastian Spaink 0860487321
Update to 1.15.8 (#8868) 2021-02-17 10:21:47 -06:00
David Bennett 2118681958
Code Signing for Windows (#8816)
* Draft config

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Create sign-windows.ps1

* Updated config.yml

* Updated config.yml

* Delete sign-windows.ps1

* Updated config.yml

* Updated config.yml

* updating config

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Create windows-signing.ps1

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml
2021-02-11 16:24:06 -05:00
Sebastian Spaink 3531e9ddc6
Removing .lgtm.yml (#8664)
* Removed LGTM

* Empty build.py to remove false python alerts
2021-01-11 10:53:17 -06:00
Sebastian Spaink c8584a7b3f
Upgrade circle-ci config to v2.1 (#8621)
* Upgrade to 2.1 circle-ci config

* new line
2021-01-06 16:23:29 -06:00
Andrey Klyachkin a748421123
add support for linux/ppc64le (#8432) 2020-11-30 16:58:03 -05:00
Steven Soroka b39c1974a2
update to go 1.15.5 (#8446) 2020-11-20 15:53:44 -07:00
Steven Soroka 954387e325 Revert "fix to start Telegraf from Linux systemd.service"
This reverts commit 3523652e30.
2020-11-12 11:12:45 -05:00
Steven Soroka 3523652e30
fix to start Telegraf from Linux systemd.service 2020-11-12 10:49:03 -05:00
reimda 73b2f988c4
Update jwt-go module to address CVE-2020-26160 (#8337) 2020-11-02 09:07:37 -07:00
reimda 771f65eb85
Skip statically linked program during glibc version check (#8280) 2020-10-16 14:45:15 -06:00
reimda bfc1a87e1d
Add glibc version check for linux builds (#8278) 2020-10-16 15:08:07 -04:00
Steven Soroka b1b776f1e5
update to go 1.15 (#8220) 2020-10-07 14:51:49 -04:00
Steven Soroka 5d999f85f0
fix docker build. update dockerfiles to Go 1.14 (#8051) 2020-08-28 16:39:55 -04:00
Steven Soroka 93a08f8d92
fixes issue with rpm /var/log/telegraf permissions (#7909) 2020-07-28 11:26:09 -04:00
Daniel Nelson 641b1d60cd
Print configuration for downloads page (#7862) 2020-07-20 12:44:44 -07:00
Steven Soroka 9a5fd6588c
update go versions: 1.14.5, 1.13.13 (#7837) 2020-07-14 20:21:02 -04:00
Daniel Nelson ca19d164c4
Fix tag package version 2020-07-07 17:02:41 -07:00
Daniel Nelson b6560c8b01
Build packages in makefile (#7759) 2020-06-30 00:15:28 -07:00
Daniel Nelson 1c292d00ca
Fail check-deps when differences are found (#7694) 2020-06-16 14:07:06 -07:00
sboeckelmann 23bcc8a3a4
Change rpm dist packaging type for arm64 to aarch64 (#7645) 2020-06-08 14:49:12 -07:00
Yarmo Mackenbach aa8cefedda
Add support for Solus distribution to maintainer scripts (#7585) 2020-06-02 23:20:45 -07:00
Daniel Nelson d27f676091
Update to Go 1.14.3 with testing using 1.13.11 (#7564) 2020-05-26 15:40:25 -07:00
Josh Soref bf1eb291f2
Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Andrés Álvarez cc6c77f301
Deploy telegraf configuration as a "non config" file (#7250) 2020-04-09 14:27:59 -04:00
Daniel Nelson 608e818645
Add docs for how to handle errors in check-deps script (#7243) 2020-03-27 15:39:32 -07:00
Daniel Nelson 1d697dd323
Update next_version on master to 1.15.0 2020-03-18 16:21:48 -07:00
Daniel Nelson 4e28e5721b
Update google.cloud.go to latest (#7199) 2020-03-18 15:30:49 -07:00
Steven Soroka fcb038d352
update docker files for go modules. Closes #7170 (#7179) 2020-03-16 19:21:21 -04:00
Daniel Nelson 318a963a89
Check license of dependencies file for changes (#7108) 2020-03-09 14:47:28 -07:00
Daniel Nelson 8acf276afe
Use Go 1.13.8 to build official packages (#7079) 2020-02-25 12:05:44 -08:00
Daniel Nelson 5f1f4b9e8d
Use Go modules for dependency management (#6912) 2020-01-16 14:38:06 -08:00
Dennis Hoppe 5f2ed4ce4f Remove tabs to fix indentation (#6896) 2020-01-14 12:30:03 -08:00
Daniel Nelson 613d0dbd16
Build packages with Go 1.13.5 (#6767) 2019-12-06 17:10:59 -08:00
Daniel Nelson a58db9e447
Increment package versions 2019-12-03 14:59:50 -08:00
Daniel Nelson d2f3215890
Build with Go 1.13.3 and 1.12.12 (#6565) 2019-10-22 13:18:02 -07:00
Daniel Nelson 5bd5cdc6d7
Build official packages with Go 1.13.1 (#6462) 2019-10-07 21:08:28 -07:00
Daniel Nelson 01e9484881
Use Go 1.12.10 for builds (#6455) 2019-09-27 16:44:54 -07:00
Daniel Nelson 82c729aba5
Set next version for builds 2019-08-27 14:05:48 -07:00
Daniel Nelson 1848adaf79
Update to Go 1.12.9 and 1.11.13 (#6303) 2019-08-22 10:51:15 -07:00
Chris Goller 71da67ec54
Add darwin (macOS) builds to the release (#6259)
This will build a darwin tar.gz package for macOS.  This allows people an easy way to download releases from github directly.
2019-08-14 16:04:57 -05:00
Daniel Nelson ac10714332
Add Linux mips build (#6153) 2019-07-23 13:20:39 -07:00
Daniel Nelson f22e7a1465
Update next version for builds 2019-06-05 14:09:59 -07:00
Daniel Nelson 59d646a8e8
Test and build official packages with Go 1.12 (#5923) 2019-05-29 18:54:44 -07:00
Lorenzo Affetti 2c3c377334 Create telegraf user in pre-install rpm scriptlet (#5783) 2019-04-30 11:04:45 -07:00
marcv81 2fb62d4aec No longer requires dep to be in $GOPATH/bin (#5763) 2019-04-26 10:50:06 -07:00
Daniel Nelson bc95a2a2b5
Don't start telegraf when stale pidfile found (#5731) 2019-04-17 15:47:03 -07:00
Lorenzo Affetti 37441e9eb1 Set log directory attributes in rpm spec (#5716) 2019-04-15 16:07:47 -07:00
Daniel Nelson 417c5c1de8
Add owned directories to rpm package (#5607) 2019-03-22 14:02:45 -07:00
Daniel Nelson bfc8758db6
Update build.py next_version 2019-02-27 11:32:58 -08:00
Gunnar 52bd698046 Use Systemd for Amazon Linux 2 packages (#5387) 2019-02-06 16:17:11 -08:00
Daniel Nelson c579a6bdb9
Add linux mipsle packages (#5234) 2019-02-04 13:50:13 -08:00
Daniel Nelson d5a03eb690
Use Go 1.10.8 and 1.11.5 (#5346) 2019-01-25 18:08:48 -08:00
Daniel Nelson 334f9267b6
Use Go 1.11.4 and 1.10.7 (#5221) 2019-01-03 12:41:16 -08:00
Daniel Nelson c12eecc90e
Signal telegraf process until it exits (#5169) 2018-12-26 18:54:50 -08:00
Daniel Nelson f533d3b370
Bump version in build.py 2018-11-05 14:55:10 -08:00
Trevor Pounds 1ec12ba6ad Add Go 1.11 CI support (#4859) 2018-10-19 11:01:31 -07:00
Trevor Pounds ecaaa20ed0 Update CI to Go 1.10.4 (#4860) 2018-10-18 15:45:18 -07:00
Daniel Nelson 8a03a21de2
Place docker files in scripts and update makefile 2018-10-11 00:57:00 -07:00
Greg Linton 96f3d7def4 Update telegraf.conf 2018-09-12 16:08:19 -06:00
Daniel Nelson 8b2d64585d
Use the correct GOARM value in the armel package (#4608) 2018-08-29 12:28:00 -07:00
Daniel Nelson 6e92df45e7 Use dep v0.5.0 (#4542) 2018-08-14 15:55:38 -06:00
Daniel Nelson 9051ea9dc0 Require dep to be installed before building (#4461) 2018-07-24 15:57:24 -06:00
Greg 1bd41ef3ce Update vendoring to dep from gdm (#4314) 2018-06-19 11:55:38 -07:00
Daniel Nelson b1d77ade55
Update master version to 1.8 2018-06-05 11:46:55 -07:00
Daniel Nelson ce58926feb
Run apt-get update in release.sh 2018-05-07 15:12:01 -07:00
Daniel Nelson de355b76d6
Simplify testing with TLS (#4095) 2018-05-04 16:33:23 -07:00
Mauro Murari 3ae0c20200 Fix platform not supported error in build.py (#4102) 2018-05-04 14:18:59 -07:00
Daniel Nelson 00203fa889
Export all vars defined in /etc/default/telegraf (#3981)
This keeps the format of this file the same between systemd and
sysvinit.
2018-04-06 13:17:24 -07:00
Daniel Nelson c160b56229
Fix build.py next_version 2018-04-04 21:53:20 -07:00
Daniel Nelson 89974d96d7
Install new requirements for fpm gem install 2018-02-06 11:33:18 -08:00
Paul Myjavec 12d62e60b3 Use CircleCI 2.0 for builds (#3731) 2018-02-01 15:05:39 -08:00
Lukasz Jagiello a18eedb970 Use deb-systemd-invoke to restart service (#3506)
From man page:
```
deb-systemd-invoke is a Debian-specific helper script which asks
       /usr/sbin/policy-rc.d before performing a systemctl call.

deb-systemd-invoke is intended to be used from maintscripts to start
       systemd unit files. It is specifically NOT intended to be used
       interactively by users. Instead, users should run systemd and use
       systemctl, or not bother about the systemd enabled state in case they
       are not running systemd.
```

This PR replace regular `systemctl` with `deb-systemd-invoke`.
2017-11-27 17:05:32 -08:00
Lukasz Jagiello 6514399baf Add shadow-utils dependency to rpm package (#3505) 2017-11-27 17:02:16 -08:00
Daniel Nelson 5141f8a2a0
Update contributing documentation 2017-11-07 13:59:06 -08:00
Daniel Nelson c14478f025
Update http_listener certs 2017-11-03 21:52:45 -07:00
clheikes 02baa696c3 Fix TELEGRAF_OPTS expansion in systemd service unit (#3354) 2017-10-18 13:57:32 -07:00
Daniel Nelson 771fbc311a
Regenerate TLS certs due to expiration 2017-10-02 15:44:55 -07:00
Daniel Nelson b24663b0bd
Remove nightly versioning scheme 2017-09-22 18:07:08 -07:00
Daniel Nelson 366bda45c3
Remove out of date Vagrantfile 2017-09-22 17:35:58 -07:00
Daniel Nelson c010fb1c3c
Fix build versioning; add dev.docker file 2017-09-22 17:35:58 -07:00
Daniel Nelson b8e134cd37 Fix arm64 packages contain 32-bit executable (#3246) 2017-09-18 14:22:54 -07:00
Daniel Nelson 9fc7220c2e Don't start Telegraf on install in Amazon Linux (#3156) 2017-08-22 17:01:59 -07:00
Daniel Nelson 5224b526f4
Hide output of git describe 2017-08-22 13:32:52 -07:00
Daniel Nelson 4de264ffc8
Remove version test 2017-08-18 11:08:48 -07:00
Daniel Nelson f9573ad969
Remove Godeps_windows from build.py 2017-08-07 17:43:06 -07:00
Daniel Nelson 40aacd9046
Fix artifact redirection 2017-08-07 17:41:52 -07:00
Daniel Nelson 5e73f3e816
Only upload nightly if on master branch 2017-08-07 17:24:35 -07:00
Daniel Nelson a1e7a5f474
Upload as nightly builds if PACKAGE set 2017-08-07 17:16:34 -07:00
Daniel Nelson 1fb5373962
Build releases with -w -s ldflags 2017-08-07 15:47:20 -07:00
Daniel Nelson 795f02ab88 Cleanup Makefile (#3089) 2017-08-03 11:54:05 -07:00
Daniel Nelson 5f88be022c
Add circleci parameter to build packages 2017-07-26 17:13:50 -07:00
Daniel Nelson 0b6db905ff
Generate sha256 hashes when packaging 2017-05-31 12:29:39 -07:00
Sylvain Boily 1ebd1aaa41 Systemd does not see all shutdowns as failures (#2716) 2017-05-08 11:48:29 -07:00
Daniel Nelson 4200018a0b
Enable s390x builds
closes #2766
2017-05-05 14:39:56 -07:00
Daniel Nelson 67cd1669cc Add SLES11 support to rpm package (#2768) 2017-05-05 14:29:40 -07:00
Sébastien a8cfe03ba8 fix systemd path in order to add compatibility with SuSe (#2499) 2017-05-05 14:04:33 -07:00
Martin 748ca7d503 Fixed install/remove of telegraf on non-systemd Debian/Ubuntu systems (#2360) 2017-04-20 11:19:33 -07:00
Cameron Sparr e811e2600d
create telegraf.d directory in tarball
closes #2513
2017-03-09 11:41:08 +00:00
Kali Hernandez 822333690f Debian package: check for group before useradd (#2107)
Fixes #2106
2017-01-24 14:54:19 -08:00
Cameron Sparr c882570983
32-bit binary for windows and freebsd
closes #1346
closes #2218
2017-01-23 20:28:13 -08:00
Pierre Fersing 1d1afe6481 Fix RPM architecture for armhf (#2003)
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
2016-12-05 16:45:02 +00:00
Cameron Sparr a6ed4d4c3a CircleCI script, do not explicitly set version tag 2016-11-03 17:21:06 +00:00
Cameron Sparr 80d4864844 Only install fpm,rpm,boto if we need them 2016-10-25 13:31:48 +01:00
Ririsoft 5913f7cb36 Log to systemd journal
Let's align to InfluxDB 1.0 logging policy and log to systemd journal by
default.

closes #1732
2016-10-06 17:48:22 +01:00
Cameron Sparr 2462e04bf2 Rdme upd (#1660)
* Update README and CHANGELOG with 1.0 RC 1

* Increase circleci test docker sleep

* update aerospike dependency
2016-08-24 08:41:12 +01:00
Cameron Sparr 13865f9e04 Disable darwin builds (#1571)
telegraf can't be cross-compiled for darwin, it has C dependencies and
thus many of the system plugins won't work.
2016-08-04 14:27:33 +01:00
Srini Chebrolu 841729c0f9 RPM post remove script update for proper handle on all Linux distributions (#1381) 2016-07-28 08:34:57 +01:00
Pierre Fersing 207c5498e7 Remove systemd Install alias (#1470)
Alias is a list of additional names. Adding it's cannonical name
cause systemctl enable telegraf to show a warning "Too many levels of
symbolic links"
2016-07-14 15:53:05 -06:00
Cameron Sparr 7c9b312cee Make race detector build in CI 2016-07-14 09:16:29 -06:00
Ross McDonald 94f952787f Add statically-linked amd64 builds to default build targets.
Remove version and iteration from root packaging folder. (#1318)

closes #1201
2016-06-02 16:14:18 +01:00
Pierre Fersing 98d91b1c89 Fix reloading Telegraf under systemd (#1279) 2016-05-26 11:32:05 +01:00
Rene Zbinden 475252d873 fix telegraf service (#1252) 2016-05-24 15:14:58 +01:00
Cameron Sparr 8e92d3a4a0 Log to /var/log/telegraf/telegraf.log on systemd
closes #1243
2016-05-23 18:00:59 +01:00
Jack Tench 08ecfb8a67 Replace sudo with su in init script
To avoid issues starting service when 'Defaults requiretty' is enabled in the sudoers file.

Fixes #1204
closes #1205
2016-05-17 18:31:49 +01:00
Ross McDonald 5348937c3d Choose correct configuration when building for windows. 2016-05-06 10:46:29 -05:00
Ross McDonald 72fcacbbc7 Minor fixes to build script:
- Fix for --name build parameter
- Remove rc parameter from build script
- Fix regression on first-level tarball directory structure
- Convert any dashes/underscores in version tag to tilde
2016-05-05 14:02:34 -05:00
Ross McDonald 8371546a66 Disable circle uploads to S3 until more testing can be done for external PR's. 2016-05-03 11:26:52 -05:00
Ross McDonald 36d7b5c9ab Improvements to build.py:
- Now uses Python argparse for cleaner handling of arguments
- Added function documentation
- Removed a few unneeded functions
- Updated nightly logic to incremement minor version
- Added support for building from specific branch or commit
- Changed --no-stash option to --no-uncommitted for clarity
- Added a --release flag, default package output will now contain the branch and commit hash in the version number
- Static builds are now listed as an architecture
- Changed default upload bucket to dl.influxdata.com/telegraf
- Don't include iteration in package name

closes #1040
2016-05-02 14:37:29 -06:00
Adithya B Cherunilam 024e1088eb Ensure sure that the post install script is compatible with RHEL 5
closes #1091
closes #1094
2016-04-28 11:58:06 -06:00
Cameron Sparr 23f2b47531 Ignore errors in systemd
closes #1022
2016-04-22 11:23:24 -06:00
Ross McDonald 7f992fd321 Changed nohup fallback command to use 'sudo -u' so that Telegraf doesn't run as the root user. 2016-04-14 13:56:20 -06:00
Cameron Sparr 1a383b7d90 Telegraf no longer depends on lsof
so remove it as a dependency from the linux packages.

closes #974
2016-04-08 11:27:33 -06:00
Ross McDonald 2f41ae24f8 Swap systemd command, as it was causing issues on Debian. 2016-03-30 10:17:31 -06:00
HUANG Wei f8e9fafda3 Add reload configuration for telegraf service scripts.
closes #794
2016-03-16 11:20:46 -06:00