Commit Graph

128 Commits

Author SHA1 Message Date
Sven Rebhan 193dc450c3
feat: Parser plugin restructuring (#8791) 2022-01-12 15:54:42 -07:00
Josef Johansson 876d19081e
feat: add systemd notify support (#10340) 2022-01-05 08:21:14 -07:00
Sven Rebhan 70c06aca16
fix: warning output when running with --test (#10329) 2021-12-22 07:05:05 -07:00
Sven Rebhan 526dcb4bc8
fix: Print loaded plugins and deprecations for once and test (#10205) 2021-12-07 15:56:18 -07:00
JC b954e565cc
fix: windows service - graceful shutdown of telegraf (#9616) 2021-12-02 15:32:19 -07:00
reimda df6bf48f8d
feat: Implement deprecation infrastructure (#10200) 2021-12-01 12:38:43 -07:00
Thomas Casteleyn aaaaabd0fd
docs: Add symlink to command documentation (#9926) 2021-10-15 13:05:37 -06:00
Sebastian Spaink 3a7d9b6d98
fix: support 1.17 & 1.16.7 Go versions (#9642) 2021-08-23 15:37:44 -05:00
Sebastian Spaink 2a72295734
Detect changes to config and reload telegraf (copy of pr #8529) (#9485) 2021-07-15 11:11:58 -05:00
Gareth Dunstone 3a1a44d67e
Feature: merge multiple "--config" and "--config-directory" flags (#9007) 2021-05-18 16:20:13 -05:00
David Bennett 1a86fd1a2d
Config Option to Enable Logging with Local Time (#9123)
* Configurable local time logging

* make timezone configurable

* Address linter feedback.

* update with example
2021-04-16 14:39:19 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Paweł Żak 74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984)
* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* "nolint"'s removed

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Steven Soroka 4dcc3c0ad7
exec plugins should not truncate messages in debug mode (#8333) 2021-03-18 17:21:30 -04:00
David Bennett 1bf5a19582
Add Event Log support for Windows (#8616)
* Add event log support for windows when not running as a windows service.

* Add error message for initializing event logger.

* Add build windows flag.

* Only register event logger when running telegraf under windows.

* Update logger/event_logger.go

Co-authored-by: Steven Soroka <ssoroka@influxdata.com>

* Remove unnecessary 'fmt' import

* Remove unnecessary 'fmt' import

* Remove unnecessary error check

* use constants for eid levels.

Co-authored-by: Steven Soroka <ssoroka@influxdata.com>
2021-01-19 11:03:19 -05:00
Daniel Nelson 4e93b87085
Add support for once mode; run processors and aggregators during test (#7474) 2020-06-01 15:26:20 -07:00
Alex Heylin 134c84f45d
Fix typo in Windows service description (#7486)
Co-authored-by: Alex Heylin <alexh@gmal.co.uk>
2020-05-11 12:20:02 -04:00
Steven Soroka cc927357a4
shim improvements for docs, clean quit, and slow readers (#7452) 2020-05-05 10:14:57 -04:00
Steven Soroka b73a232a6a
Support Go execd plugins with shim (#7283) 2020-05-04 14:09:10 -04:00
Steven Soroka 819481b195
add support for SIGUSR1 to trigger flush (#7366) 2020-04-20 13:49:10 -04:00
maurorappa 2beb79969a Sort alphabetically the output of the plugin listing commands (#6810) 2019-12-17 12:44:17 -08:00
Daniel Nelson 776e92ffab
Require goplugin build flag to enable go plugin support (#6393) 2019-09-20 16:50:19 -07:00
Vlasta Hajek 7ec54d4be9 Improve startup error reporting when ran as Windows service (#4291) 2019-08-28 14:34:44 -07:00
Mattias Jiderhamn 08b903a646 Use environment variables to locate Program Files on Windows (#6317) 2019-08-27 13:47:01 -07:00
Daniel Nelson 3f63c14179
Setup default logging before logging. 2019-07-29 21:47:49 -07:00
Preston Carpenter 5c7c9e40ee Load external go plugins (#6024) 2019-07-29 21:34:03 -07:00
Daniel Nelson de096428be
Run ServiceInputs during test mode; add --test-wait option (#5911) 2019-06-14 12:06:25 -07:00
Daniel Nelson 3d7a71889d
Ignore context canceled error when reloading/stopping agent 2019-05-31 16:50:44 -07:00
javicrespo bcf7516a23 Add in process log rotation (#5778) 2019-05-03 10:25:28 -07:00
Daniel Nelson 7978ebef40
Add --service-display-name option for use with Windows service (#5770) 2019-04-30 18:34:19 -07:00
Greg 6436005553 Add cli support for outputting sections of the config (#5585) 2019-04-25 20:34:40 -07:00
Daniel Nelson c57ba6110d
Exit after running --test without requiring --console (#5631) 2019-03-26 18:17:27 -07:00
Daniel Nelson 140387d2c3
Log warning when wireless plugin is used on unsupported platform (#4986) 2018-11-15 15:45:56 -08:00
Greg 91ecec71ea Only print final collection when runing --test (#4991) 2018-11-15 15:44:36 -08:00
Daniel Nelson 6e5c2f8bb6
Remove outputs blocking inputs when output is slow (#4938) 2018-11-05 13:34:28 -08:00
Trevor Pounds ee056278f5 Enable gofmt code simplification (#4887) 2018-10-19 13:32:54 -07:00
Kevin Conaway 7bb219222a Add internal function for telegraf version (#4828) 2018-10-09 13:45:07 -07:00
Lee Jaeyong 6b7d64f1d6 Add ability to define a custom service name when installing as a Windows service (#4753) 2018-09-27 18:41:24 -07:00
Greg 4ef058c120 Document all supported cli arguments (#4655) 2018-09-10 11:53:04 -07:00
Daniel Nelson 31e1c04ed0
Set version to unknown if not set (#4521) 2018-08-12 16:52:35 -07:00
Daniel Nelson 40fac0a9b4
Treat sigterm as a clean shutdown signal (#4277) 2018-06-12 16:44:04 -07:00
Daniel Nelson b1d77ade55
Update master version to 1.8 2018-06-05 11:46:55 -07:00
Piotr Popieluch e0071f365a Print the enabled aggregator and processor plugins on startup (#4212) 2018-05-31 11:56:49 -07:00
Daniel Nelson 7c0754ebe5
Move usage string to internal to fix `go run` 2018-05-04 14:16:21 -07:00
Daniel Nelson 3f4e1af222
Add --console and --service to usage message in Windows (#3993) 2018-04-11 16:44:55 -07:00
Daniel Nelson a9afd2f030
Add config-directory documentation for Windows service 2018-04-04 16:30:22 -07:00
Daniel Nelson 413cf6dd23
Set next version to 1.7 on master 2018-04-02 14:44:09 -07:00
Logan d831dbc51d Allow running as console application on Windows (#2754) 2018-01-25 15:04:09 -08:00
Daniel Nelson bdda6ceb70
Update next version number for dev builds 2017-12-01 11:52:46 -08:00
Daniel Nelson 9b0af4478b
Remove incorrect comment about linker options 2017-11-01 18:17:51 -07:00