Commit Graph

52 Commits

Author SHA1 Message Date
Paweł Żak 7dc397a830
chore: Fix linter findings for `revive:exported` in `plugins/inputs/e*` (#16044) 2024-10-24 11:03:42 +02:00
Paweł Żak 6c48fbb1f2
chore: Fix linter findings for `revive:enforce-map-style` in `plugins/inputs/[a-m]*` (#16042) 2024-10-21 13:11:11 +02:00
Paweł Żak 9415d8e7e9
chore(linters): Enable `import-alias-naming` and `redundant-import-alias` rules for revive (#15836) 2024-10-01 13:49:53 -05:00
Joshua Powers a21d263c4c
feat(inptus.elasticsearch): Gather enrich stats (#15688) 2024-07-31 14:53:42 -05:00
Rob Sears 27eee98eca
feat(inputs.elasticsearch): Add support for custom headers (#15544) 2024-06-24 15:31:29 -05:00
Joshua Powers 71718fba7d
chore: Update removal dates to either v1.35.0 or v1.40.0 (#15452) 2024-06-05 15:19:47 -05:00
Nick Thomas 96d6da63f2
fix(http): Stop plugins from leaking file descriptors on telegraf reload (#15213) 2024-04-24 15:18:15 -05:00
Óscar Erades 59f53c0302
feat: Use HTTPClientConfig struct in elastic stack plugins (#14207) 2023-11-13 15:53:36 -07:00
Paweł Żak 02f0b15033
chore: Enable dynamicFmtString and sprintfQuotedString checkers for gocritic (#13279)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-06-09 10:11:52 +02:00
Paweł Żak 581c82a31e
chore: Wrap long lines in plugins/inputs/[e-h]* (#12186)
Co-authored-by: Pawel Zak <Pawel Zak>
2022-11-08 14:42:05 -06:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Sebastian Spaink 8e2b4988fe
feat: migrate input plugins to new sample config format (A-L) (#10924) 2022-04-07 16:01:21 -06:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06:00
Paweł Żak 9a794919e3
Linter fixes for plugins/inputs/[de]* (#9379) 2021-06-21 10:07:52 -05: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
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Paweł Żak d9736d543f
Revive fixes - part 2 (#8835)
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -05:00
David Bennett c47fcf6626
Add configurable number of 'most recent' date-stamped indices to gather in Elasticsearch input (#8543)
Add configurable number of 'most recent' date-stamped indices to gather in the Elasticsearch input plugin, and allow wildcards to account for date-suffixed index names. Configuring '3' for num_most_recent_indices will only gather the 3 latest indices, based on the date or number they end with. Finding the date or number is dependent on the targeted indices being configured with wildcards at the end of their 'base' names.
2020-12-21 11:45:19 -05:00
Daniel Nelson c73ed8ca6c
Export internal/tls package for use in execd plugins (#7697) 2020-06-25 11:44:22 -07:00
Len Smith d915f7c7d6
Fix shard indices reporting in elasticsearch input (#7332) 2020-04-24 13:38:58 -07:00
dupondje 78d3b86581 Add Indices stats to elasticsearch input (#6060) 2019-08-02 12:42:25 -07:00
Greg 66beeb6523 Add basic auth support to elasticsearch input (#6122) 2019-07-15 16:41:29 -07:00
dupondje 9af39bbb7d Add node roles tag to elasticsearch input (#6064) 2019-07-03 13:04:07 -07:00
dupondje 83c8d7be2a Fix master check and move cluster health indices to separate measurement (#6004) 2019-06-25 16:16:15 -07:00
dupondje 1775e1cdc6 Add cluster name tag to elasticsearch indices (#5998) 2019-06-17 13:31:15 -07:00
Pierre Fersing 0772076378 Allow for force gathering ES cluster stats (#4345) 2018-11-19 11:53:09 -08:00
Feliksas The Lion 1a8786712c Added 3 important elasticsearch cluster health metrics (#4167) 2018-05-18 18:49:23 -07:00
Daniel Nelson de355b76d6
Simplify testing with TLS (#4095) 2018-05-04 16:33:23 -07:00
Daniel Nelson 76ce71f7fa
Fix breaker stat name in elasticsearch comment 2018-03-16 12:58:39 -07:00
Arkady Emelyanov 4d91162abd Add health status mapping from string to int in elasticsearch input (#3551) 2017-12-07 11:31:03 -08:00
Christian Meilke 75567d5b51 Add ability to limit node stats in elasticsearch input (#3304) 2017-10-06 16:16:32 -07:00
Christian Meilke 0bb32570ba Add cluster health level configuration to elasticsearch input (#3269) 2017-10-04 15:29:32 -07:00
Bob Shannon a7595c918a Fix panic in elasticsearch input if cannot determine master (#2954) 2017-06-26 15:23:53 -07:00
Patrick Hemmer 06baf7cf78 use AddError everywhere (#2372) 2017-04-24 11:13:26 -07:00
Cameron Sparr a9f03a72f5
Mask username/password from error messages
closes #1980
2016-12-20 19:35:45 +00:00
Matt O'Hara 1392e73125 Add clusterstats to elasticsearch plugin (#1979)
* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* add clusterstats to elasticsearch input plugin

* responses to requested changes

* remove unnecessary recommendation
2016-12-20 16:30:03 +00:00
Christian Eichelmann efb64a049f add a hint to possible basic authentication settings 2016-12-09 12:58:54 +00:00
Cameron Sparr 969f388ef2 Make elasticsearch timeout configurable
closes #1674
2016-08-29 11:06:30 +01:00
Mike Glazer e3448153e1 Allow for TLS connections to ElasticSearch (#1398)
* Allow for TLS connections to ElasticSearch

Extremely similar implementation to the HTTP JSON module's
implementation of the same code.

* Changelog update
2016-06-22 16:23:49 +01:00
Cameron Sparr 2c448e22e1 New object: ErrChan for concurrent err handling 2016-06-02 13:29:37 +01:00
Pierre Fersing 7416d6ea71 Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
Cameron Sparr 8d2e5f0bda Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
Cameron Sparr fc7fa4b6c5 Cleanup comments and indentation in config file 2016-02-09 11:01:50 -07:00
Cameron Sparr e619493ece Implementing generic parser plugins and documentation
This constitutes a large change in how we will parse different data
formats going forward (for the plugins that support it)

This is working off @henrypfhu's changes.
2016-02-08 21:08:44 -07:00
Cameron Sparr 9c0d14bb60 Create public models for telegraf metrics, accumlator, plugins
This will basically make the root directory a place for storing the
major telegraf interfaces, which will make telegraf's godoc looks quite
a bit nicer. And make it easier for contributors to lookup the few data
types that they actually care about.

closes #564
2016-01-27 15:42:50 -07:00
Cameron Sparr f2ab5f61f5 Gather elasticsearch nodes in goroutines, handle errors
fixes #464
2016-01-21 17:00:44 -07:00