Commit Graph

193 Commits

Author SHA1 Message Date
Sebastian Spaink 7a987306e5
Update Go to 1.16.5 (#9331) 2021-06-07 19:19:22 -05:00
reimda aa427ed812
Parallel build fixes (#9326) 2021-06-02 13:19:33 -06:00
Sebastian Spaink 279dda21ef
Add FreeBSD armv7 package (#9200) 2021-05-03 10:00:49 -06:00
David Bennett 9ff3fe5aa4
Parallelize PR builds by Architecture (#9172)
* add oauth2 to http input

* stuff

* Updated config.yml

* Update README.md

* Update http_test.go

* Update Makefile

* Updated config.yml

* Update http_test.go

* Update http.go

* Update http.go

* Update http.go

* Update http.go

* Updated config.yml
2021-04-26 09:18:58 -04:00
David Bennett ad942052f0
Speed up package step by running in parallel. (#9096)
* test

* more test

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Update Makefile

* Update Makefile

* Update Makefile

* Update Makefile

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml

* Updated config.yml
2021-04-21 13:32:34 -04:00
Steven Soroka 9c54c8e233
new linter commands (#9020) 2021-03-30 13:11:31 -05:00
Sebastian Spaink 89f5e8a9d9
Update to Go 1.16.2 (#8989) 2021-03-16 15:23:44 -04:00
Paweł Żak 9ddd189cd3
Proposal of enabled linters and their settings. (#8951)
* Proposal of enabled linters and their settings.

* Workaround to skip weird "plugins/parsers/influx/plugins/parsers/influx" directory

* Update to reflect changes in github actions

* Back to the last state

* Fix

Co-authored-by: Pawel Zak <Pawel Zak>
Co-authored-by: Sebastian Spaink <sspaink@influxdata.com>
2021-03-12 12:14:31 -06:00
Sebastian Spaink f32230259c
Update to 1.16.1 (#8978) 2021-03-11 19:05:50 -06: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
Sebastian Spaink 660eb5b63c
Run revive linter in CI (#8798)
* Run revive linter in CI
Just output the results, don't fail on it
Removed the rule.exported rule

* Move revive install to CI

* new line

* Use golangci-lint

* Get v1.37

* increase timeout by a minute

* try five minutes

* newline missing

* Update config
2021-02-18 10:56:10 -06:00
Sebastian Spaink 0860487321
Update to 1.15.8 (#8868) 2021-02-17 10:21:47 -06:00
Sam Arnold 86e50f85b3
Increase build verbosity with go mod download -x (#8496) 2021-02-05 09:57:10 -05:00
Helen Weller d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
Andrey Klyachkin a748421123
add support for linux/ppc64le (#8432) 2020-11-30 16:58:03 -05:00
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
Steven Soroka b39c1974a2
update to go 1.15.5 (#8446) 2020-11-20 15:53:44 -07:00
Steven Soroka e158255d9b Get the build version from a static file 2020-10-21 23:12:18 -04:00
David Reimschussel 81dd120876 Update next_version to 1.17.0 2020-10-21 16:10:35 -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
Patryk Małek 843ea4b6d3
Fix docker-image make target (#8005) 2020-09-03 09:38:19 -06:00
Sven Rebhan b5fafb4c95
Fix CI AppVeyor 'make check' errors for go 1.15 on windows (#8061)
Avoid writing to nul on windows.  On Appveyor, writing to nul creates a file instead of discarding output.  The file's existence creates errors later in the build.
2020-09-01 11:52:41 -06:00
Steven Soroka 5d999f85f0
fix docker build. update dockerfiles to Go 1.14 (#8051) 2020-08-28 16:39:55 -04:00
Daniel Nelson 72dec1b9c1
Fix arch name in deb/rpm builds (#7877) 2020-07-22 14:59:48 -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 37f12ec6ea
Fix darwin package build flags (#7818) 2020-07-10 11:04:38 -07:00
Daniel Nelson ca19d164c4
Fix tag package version 2020-07-07 17:02:41 -07:00
Daniel Nelson 05537584df
Update next version 2020-07-07 14:47:10 -07:00
Jakub Warczarek eb06e027f0 Do not enable -race for GOARCH=386 2020-07-03 19:20:55 +02:00
Jakub Warczarek a9d023d567 Run all Go tests with flag -race 2020-07-03 18:49:02 +02:00
Daniel Nelson 3b54838eca
Only set version ldflags on tags 2020-06-30 00:49:09 -07:00
Daniel Nelson b6560c8b01
Build packages in makefile (#7759) 2020-06-30 00:15:28 -07:00
reimda 71b0b96241
Add processor to look up service name by port (#7540) 2020-05-27 15:42:59 -06:00
Asgaut Eng c12c55da96
Fix 'nil' file created by Makefile on Windows (#7224)
The /dev/null device on Windows is a virtual file named "nul" not "nil".
This fix works under both cmd.exe and Powershell.
2020-03-24 14:18:03 -07: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
Daniel Nelson 613d0dbd16
Build packages with Go 1.13.5 (#6767) 2019-12-06 17:10:59 -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 1848adaf79
Update to Go 1.12.9 and 1.11.13 (#6303) 2019-08-22 10:51:15 -07:00
Daniel Nelson aea09b3a20
Use sarama built in support for consumer groups (#6172) 2019-07-29 20:41:12 -07:00
Daniel Nelson 4ac2ef1c7f
Fix duplicate makefile target 2019-05-30 15:21:25 -07:00
Daniel Nelson 59d646a8e8
Test and build official packages with Go 1.12 (#5923) 2019-05-29 18:54:44 -07:00
Daniel Nelson 3d206d2897
Exclude dep check on windows CI 2019-03-05 10:42:25 -08:00
Daniel Nelson 6088c7f969
Add dep check to CI tests 2019-03-04 17:22:24 -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
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07: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
Daniel Nelson 9051ea9dc0 Require dep to be installed before building (#4461) 2018-07-24 15:57:24 -06:00
Daniel Nelson 5150d565d7
Fix several build issues (#4412) 2018-07-11 22:57:46 -07:00
Ayrdrie 9fe90d71f4 Add plugin development framework (#4324) 2018-07-02 16:34:40 -07:00
Daniel Nelson ee6e4b0afd
Run windows tests with -short 2018-06-21 17:46:58 -07:00
Greg 1bd41ef3ce Update vendoring to dep from gdm (#4314) 2018-06-19 11:55:38 -07:00
Daniel Nelson f689463e8e
Use linux/unix name only in `make install`
closes: #4278
2018-06-12 18:37:50 -07:00
Daniel Nelson 339cebbc21
Use -parallel=false in gdm to avoid issues on appveyor 2018-05-17 15:19:17 -07:00
Daniel Nelson 757e23a5f2
Remove -i flag from `make telegraf` 2018-05-04 14:08:23 -07:00
Boris Schrijver 64a23c0b18 Fix make test-ci run (#4002) 2018-04-10 15:35:58 -07:00
Daniel Nelson 627f0e5d9d
Use automatic extension naming when running go build 2018-04-04 19:00:28 -07:00
Daniel Nelson 4551b4c5d2
Enable ntpq tests on Windows (#3972) 2018-04-04 18:35:05 -07:00
Daniel Nelson 0aad487cab
Fix go vet and use go test -race 2018-04-02 14:30:46 -07:00
Daniel Nelson b99cd14129
Add influx uint support as a runtime option (#3948) 2018-03-29 13:31:43 -07:00
Matt a320f91516 Add line protocol uint64 support (#3946) 2018-03-28 16:43:25 -07:00
Daniel Nelson 1c0f63a90d
Add new line protocol parser and serializer, influxdb output (#3924) 2018-03-27 17:30:51 -07:00
Daniel Nelson 6d6631382c
Remove gdm -parallel false 2018-03-14 11:36:03 -07:00
Daniel Nelson 8cfd001441
Disable parallel restore in gdm
May be aggrevating timeout issue on appveyor builds.
2018-03-13 20:44:51 -07:00
Daniel Nelson 1f87c10dd4
Fix Makefile on Windows and use in AppVeyor build (#3748) 2018-02-02 12:25:59 -08:00
Ben Aldrich a7571d5730 Add native Go method for finding pids to procstat (#3559) 2018-02-01 15:14:27 -08:00
Paul Myjavec 12d62e60b3 Use CircleCI 2.0 for builds (#3731) 2018-02-01 15:05:39 -08:00
Daniel Nelson 3cf0ba1ccf
Pin crate docker image for testing 2018-01-09 13:10:40 -08:00
Felix Geisendörfer 62ec3e50d9 Add CrateDB output plugin (#3210) 2017-11-09 14:03:16 -08:00
Daniel Nelson 5141f8a2a0
Update contributing documentation 2017-11-07 13:59:06 -08:00
Daniel Nelson c010fb1c3c
Fix build versioning; add dev.docker file 2017-09-22 17:35:58 -07:00
Daniel Nelson ccf17a9f93
Cache intermediate objects during build 2017-08-21 17:26:55 -07:00
Daniel Nelson 5003809e97
Merge LDFLAGS from env into build 2017-08-11 16:26:54 -07:00
Daniel Nelson 3c14b46f6f
Fix ordering of all target 2017-08-09 11:47:55 -07:00
Daniel Nelson 1fb5373962
Build releases with -w -s ldflags 2017-08-07 15:47:20 -07:00
Vlasta Hajek e21f2de8b8 Add Windows Services input plugin (#3023) 2017-08-07 14:36:15 -07:00
Daniel Nelson 795f02ab88 Cleanup Makefile (#3089) 2017-08-03 11:54:05 -07:00
Jeff Ashton c31e7d0b91 Fix win_perf_counters tests (#3068) 2017-07-31 11:03:26 -07:00
Andy Cobaugh 1ff6e92193
Add input plugin for OpenLDAP (#2612) 2017-07-21 15:44:20 -07:00
Daniel Nelson d40e441240 Use git sha1 as version if not tagged (#2969) 2017-06-27 13:24:06 -07:00
Seuf 2092443cd7 Add Kafka 0.9+ consumer support (#2487) 2017-06-07 18:22:28 -07:00
Leandro Piccilli bb28fb256b Add Elasticsearch 5.x output (#2332) 2017-03-20 17:47:57 -07:00
Fabio Berchtold 3fa37a9212 Rewriting Riemann output plugin (#1900)
* rename to riemann_legacy

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* initial draft for Riemann output plugin rewrite

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add unit tests

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add option to send string metrics as states

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add integration tests

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add plugin README.md

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* bump riemann library

* clarify settings description

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* update Readme.md with updated description

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* add Riemann event examples

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

* use full URL for Riemann server address

Signed-off-by: Fabio Berchtold <fabio.berchtold@swisscom.com>

closes #1878
2017-01-27 14:54:59 -08:00
Cameron Sparr fe6162b2a1 Use short commit in Makefile build 2016-11-03 16:37:52 +00:00
Cameron Sparr bc22309459 Add commit & branch to Makefile 2016-09-13 09:31:30 +01:00
Paulo Pires 6b1cc67664 Add NATS output plugin.
Added NATS server container needed for tests.

Added NATS output plug-in. Fixes #1487

NATS output plug-in use internal.GetTLSConfig to instrument TLS configuration.

Added NATS output plug-in to changelog.

closes #1487
closes #1697
2016-09-06 11:39:57 +01:00
Cameron Sparr 792682590c Remove snmp_legacy unit tests and docker image 2016-08-31 12:17:06 +01:00
Cameron Sparr e9d33726a9 start aerospike container 1st for unit tests
because it requires some time to initialize before it can respond to
metric requests.
2016-08-24 09:16:55 +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 94e673fe85 Revert "add pgbouncer plugin"
This reverts commit fec9760f72.
2016-08-17 16:50:11 +01:00
politician 26315bfbea Defines GOOS and GOARCH for windows builds (#1621)
* defines GOOS and GOARCH for windows builds

* default to amd64 on windows

* windows: use latest versions of missing packages
2016-08-11 15:35:00 +01:00
jsvisa fec9760f72 add pgbouncer plugin
add pgbouncer docker for testing

add pgbouncer testcase

update changlog

closes #1400
2016-08-10 15:14:15 +01:00
Dennis Bellinger 7b6713b094 Telegraf support for built-in windows service.
Updated windows dependencies

Updated the windows dependencies so that the versions matched the
dependencies for Mac OS and Linux. Additionally added some that were
complained about being missing at compile time.

Incorporated kardianos/service for management

Incorporated the library github.com/kardianos/service to manage the
service on the various platforms (including Windows). This required an
alternate main function.

The original main function was renamed to reloadLoop (as that is what
the main loop in it does) (it also got a couple of parameters). The
service management library calls it as the main body of the program.

Merged service.go into telegraf.go

Due to compilation issues on Windows, moved the code from service.go
into telegraf.go and removed service.go entirely.

Updated dependencies and fixed Windows service

Updated the dependencies so that it builds properly on Windows,
additionally, fixed the registered command for starting it as
a service (needed to add the config file option). This currently
standardizes it as a C:\telegraf\telegraf.conf on Windows.

Added dependency for github.com/kardianos/service

Removed the common dependencies from _windows file

Removed all the common dependencies from the Godeps_windows file and
modified Makefile to load Godeps and then Godeps_windows when building
for Windows. This should reduce problems caused by the Godeps_windows
file being forgotten when updating dependencies.

Updated CHANGELOG.md with changes

Ran `go fmt ./...` to format code

Removed service library on all but Windows

The service library [kardianos/service](github.com/kardianos/service)
has been disabled on all platforms but windows, as there is already
existing infrastructure for other platforms.

Removed the dependency line for itself

It appears that gdm accidentally added the project itself to the
dependency list. This caused the dependency restoration to select an
earlier version of the project during build.

This only affected windows.
This only affected builds after 020b2c70

Updated documentation for Windows Service

Removed the documentation about using NSSM and added documentation on
installing telegraf directly as a Windows Service.

Added license info for kardianos/service

Added the license information for github.com/kardianos/service which is
licensed under the ZLib license, although that name is never mentioned
the license text matches word for word.

Changed the Windows Config file default location

Updated the default location of the configuration file on Windows from
C:\telegraf\telegraf.conf to C:\Program Files\Telegraf\telegraf.conf.
With this change includes updating the directions, including directing
that the executable be put into that same directory. Additionally, as
noted in the instructions, the location of the config file for the
service may be changed by specifying the location with the `-config`
flag at install time.

Fixed bug - Wrong data type: svcConfig

svcConfig service.Config => svcConfig *service.Config
(It needed to be a pointer)
2016-08-08 23:10:39 +01:00