Commit Graph

19 Commits

Author SHA1 Message Date
4803b33f89 Better sub inputs handling (#193)
* Support for sub_inputs in extra plugins

* fix: properly handle lists as TOML arrays

- Updated the Jinja template to detect and serialize lists using |to_json,
  ensuring Telegraf interprets them correctly (e.g. names = ["item1","item2"]).
- Removed fallback logic for single items, so we consistently treat all sub_input
  values as lists of dictionaries.

---------

Co-authored-by: Michał Lisowski <mlisowski@sentient.ie>
2025-02-07 18:54:09 +01:00
bfe52cd752 Support for sub_inputs in extra plugins (#184)
Co-authored-by: Michał Lisowski <mlisowski@sentient.ie>
2024-02-28 20:00:49 +01:00
9b912d8f97 Added proper newline 2020-10-16 15:37:21 +02:00
4956663701 add queries var to template 2020-02-27 22:09:58 +03:00
a55ef0b0c0 Added extra filtering possibilities for a plugin 2019-12-01 16:23:09 +01:00
f826414f5f Remove legacy configuration options 2019-01-21 17:24:01 +01:00
d744a12f6f Fix tagpass and tagdrop syntax 2019-01-21 15:02:32 +01:00
086dfab7d3 Add support for extra win_perf_counters and prevent python u'' strings 2018-12-13 10:42:39 -06:00
18f5dd81b9 telegraf-extra-plugin.conf.j2: fix template typo
Related to commend : 3cccb6ba50 (r31366694)

Fix typo added in template `telegraf-extra-plugin.conf.j2`

Also add molecule tests to validate file generated with `telegraf_plugins_extra` option.

The added test template come from `Multiple inputs of the same type` (https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#multiple-inputs-of-the-same-type)
2018-11-20 15:59:45 +01:00
3cccb6ba50 Fix meta file 2018-11-19 20:20:49 +01:00
e93bc95cb5 Allow overriding plugin in telegraf_plugins_extra dict 2018-05-09 11:52:58 +10:00
51ac4b7640 Convert the telegraf_plugins_extra varaible to a hash so that we can merge the hashes of multiple var files 2018-05-06 16:54:34 +10:00
a49a079664 Improved comments, split up role, moved tags and added defaults
- Added some commenting inside of defaults to clarify which variables
  adjust which files

- Split up the role taking items out of main.yml in tasks. This is to
  improve clarity of what each bit of Ansible code is doing.

- Tags were defined for each and every task within the Debian.yml moved
  ths up to main.yml so they don't need repeating every task adding
  clutter.

- Added some extra default plugins, as of current release version these
  are now within the default configuration but were missing from this
  role.

- Added some commenting inside the templates and the top of some tasks
  to clarify where the templated file was coming from.
2018-04-06 12:25:27 +01:00
87e6e95c72 Fix extra plugins by file 2017-10-23 23:10:25 -04:00
128faa55b6 Consolidate instead to a single extra-plugins conf file, to cover the case of multiple instances of same plugin 2017-02-21 10:40:19 -08:00
641981bfb3 Remove for-loop in extra-plugin template, because this is performed by the task itself. Was causing all extra plugin configurations to be written in each sub-configuration file 2017-02-20 20:24:19 -08:00
0597f0115c extra plugins tags 2017-01-20 11:58:17 +01:00
01d05b0a88 added template for extra plugins 2016-06-23 12:56:59 +02:00
cf37fb1d2e moved extra plugins to extra configs in telegraf.d and changed the main.yml to more yml stylish definitions 2016-04-06 16:11:48 +02:00