Commit Graph

239 Commits

Author SHA1 Message Date
Paweł Żak ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible (#14698) 2024-02-08 11:32:30 -06:00
Andreas Deininger 5f5a56ed01
docs: Fix typos (#14376) 2024-01-05 22:34:02 +01:00
Sven Rebhan 2a81343ad3
feat(migrations): Add migration for fieldpass/fielddrop (#14401) 2023-12-07 12:31:30 -07:00
Paweł Żak aa681be594
chore(linters): Remove blank identifiers and errors which are not needed to handle (#14399) 2023-12-07 08:09:01 -07:00
Sven Rebhan d570f015df
feat(secrets): Add unprotected secret implementation (#13998) 2023-12-04 10:42:48 -07:00
Thomas Casteleyn 193479a988
feat(config): Deprecate `fieldpass` and `fielddrop` modifiers (#14012) 2023-12-04 08:22:12 -07:00
Akash Gupta 761dbce964
feat(agent): Allow separators for namepass and namedrop filters (#14361) 2023-11-30 16:15:56 -07:00
Andreas Deininger 6814d7af8a
docs: Fix typos (#14359)
Co-authored-by: Josh Powers <powersj@fastmail.com>
2023-11-29 14:47:39 +01:00
Sven Rebhan 1887d2983c
fix(config): Fix comment removal in TOML files (#14240) 2023-11-06 06:37:33 -07:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Paweł Żak 990ffc7222
chore(linters): Fix findings found by testifylint: bool-compare (#14163) 2023-10-24 10:45:17 -06:00
Sven Rebhan 184038d5e6
feat(migrations): Add option migration for inputs.disk (#14141) 2023-10-23 07:50:22 -06:00
Sven Rebhan e2c4e10650
chore(secrets): Abstract secret implementation (#13953) 2023-09-25 14:37:04 -06:00
Sven Rebhan 84b3b587da
feat(prometheus): Allow to specify metric type (#13874) 2023-09-11 07:45:16 -06:00
Joshua Powers 8dbc177d3f
fix(metricpass): Remove python logic compatibility (#13791) 2023-08-28 22:47:29 +02:00
Joshua Powers 0b7ec728b6
feat(agent): Watch default config files if none specified (#13774) 2023-08-28 10:23:54 +02:00
Paweł Żak 5661341813
chore: Enable filepathJoin checker for gocritic (#13758)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-08-14 23:18:20 +02:00
Sven Rebhan cb0bd849ad
fix(config): Handle escaping and quotation correctly (#13675) 2023-07-26 09:46:14 -06:00
Sven Rebhan 63ed4b5f85
fix(config): Setup logger for secret-stores (#13671) 2023-07-25 09:15:41 -06:00
Sven Rebhan 3da80fdfc6
feat(agent): Add option to avoid filtering of global tags (#13605) 2023-07-14 16:00:10 +02:00
Sven Rebhan 1dd45b1d1c
fix(config): Replace environment variables if existing but empty (#13570) 2023-07-10 15:24:40 +02:00
Sven Rebhan 86c11bce29
feat(migrations): Add migration for 'inputs.httpjson' (#13532) 2023-07-05 12:40:22 -06:00
Sven Rebhan 47e10e1679
fix(config): Restore old environment var behavior with option (#13457) 2023-06-21 07:58:21 -06:00
Sven Rebhan 4d22b9106e
fix(config): Move bracketed environment variable substitution to double-dollar (#13451) 2023-06-15 20:11:38 +02:00
Sven Rebhan 16786d2977
feat(config): Add framework for migrating deprecated plugins (#13377) 2023-06-09 10:10:09 +02:00
Joshua Powers ca7c8f7005
chore: update removal and deprecations for v1.30.0 (#13351) 2023-06-02 12:36:19 +02:00
Sven Rebhan c3ce6a8e12
chore(config): Split tests to avoid cyclic import (#13371) 2023-06-02 12:32:10 +02:00
Sven Rebhan 4a8b1473f7
chore(serializers): Cleanup after migration (#13378) 2023-06-01 12:10:06 -06:00
Sven Rebhan 0a491a7bf3
feat(agent): Add option to avoid filtering of explicit plugin tags (#13364) 2023-05-31 11:06:50 -06:00
Sven Rebhan 5a8ccbde6f
chore(serializers.prometheus): Migrate to new-style framework (#13347) 2023-05-31 11:02:19 -06:00
Sven Rebhan 238478bc9c
chore(serializers.wavefront): Migrate to new-style framework (#13344) 2023-05-26 11:51:03 -06:00
Sven Rebhan b20a3ac77b
chore(serializers.splunkmetric): Migrate to new-style framework (#13342) 2023-05-26 08:43:58 -06:00
Sven Rebhan ece214e5a9
chore(serializers.json): Migrate to new-style framework (#13335) 2023-05-25 13:22:14 -06:00
Sven Rebhan bbe30f769d
chore(serializers.graphite): Migrate to new-style framework (#13321) 2023-05-24 08:49:41 -06:00
Sven Rebhan 272add9b84
feat(secretstores): Add http plugin (#13150) 2023-05-24 08:48:59 -06:00
Neelay Upadhyaya 7c636b4b6b
feat(config): Support shell like syntax for environment variable substitution (#13229) 2023-05-24 09:47:25 +02:00
Sven Rebhan 7ced2606b2
chore(parsers)!: Remove old-style creation (#13310) 2023-05-23 14:17:11 -06:00
Sven Rebhan 66988b81cf
chore(serializers.csv): Migrate to new-style framework (#13319) 2023-05-23 08:18:48 -06:00
Sven Rebhan d06fb73228
chore(serializers.carbon2): Migrate to new-style framework (#13291) 2023-05-19 12:44:26 -06:00
Paweł Żak 727533ee55
chore: Enable deferInLoop, exitAfterDefer and unnecessaryDefer checkers for gocritic (#13280)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-05-19 09:55:08 +02:00
Sven Rebhan 129d8eb98e
feat: Add common expression language metric filtering (#13144) 2023-04-28 12:42:25 -06:00
Sven Rebhan 9bb2d1562d
chore(serializers): Add new-style framework and migrate influx (#12920) 2023-04-11 21:52:42 +02:00
Joshua Powers c84940b388
fix(agent): pass quiet flag earlier (#13020) 2023-04-04 06:57:02 -06:00
Sven Rebhan 3213af612e
fix(secret): Add function to set a secret (#13012) 2023-04-03 07:01:47 -06:00
Sven Rebhan d8adb1edf2
fix(secrets): Warn if OS limit for locked memory is too low (#12993) 2023-04-03 10:49:07 +02:00
Paweł Żak 73076bb9fa
chore: Fix linter findings for Darwin (#12958)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-28 11:46:32 +02:00
Joshua Powers f1da63da44
fix(config): Return error on order set as string (#12880) 2023-03-21 16:37:57 +01:00
Joshua Powers 3b5f599106
chore: Update default folder locations to match packaging (#12865) 2023-03-15 17:53:37 +01:00
Joshua Powers 7284c126ce
fix(serializers.graphite): Allow for specifying regex to sanitize (#12835) 2023-03-14 11:46:44 +01:00
Joshua Powers 1b36d73a7d
feat(agent): Print loaded configs (#12827) 2023-03-10 13:44:56 +01:00
Sven Rebhan 7981260f22
feat(agent): Add command-line option to specify password (#12812) 2023-03-09 11:54:27 +01:00
Paweł Żak 360edd52b6
chore: Fix linter findings for errorlint (part8) (#12785)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-06 12:27:03 +01:00
Sven Rebhan f87916aaa9
feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -07:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Paweł Żak f7949ca68a
chore: Fix linter findings for errorlint (part1) (#12701)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:57:53 +01:00
Sven Rebhan 9dfbbb29ae
feat(config): Accept durations given in days (e.g. "7d") (#12579) 2023-02-16 10:10:18 -07:00
Eng Zer Jun 4d0f05980e
test: Use `t.Setenv` to set env vars (#12621) 2023-02-10 11:46:14 +01:00
Sven Rebhan 53f36570fd
fix(secretstores): check store id format and presence (#12644) 2023-02-07 11:15:02 -07:00
Paweł Żak 1260b4523b
chore: Fix linter findings for tenv (#12622)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-07 17:12:42 +01:00
Joshua Powers ae2eb096cd
feat(agent): Add /etc/telegraf/telegraf.d to default config locations (#12608) 2023-02-07 17:02:01 +01:00
Sven Rebhan eb03bb5599
fix(inputs.exec): restore pre-v1.21 behavior for CSV data_format (#12533) 2023-01-26 13:51:39 -07:00
Sven Rebhan f5c2c4abf0
feat(secretstores): convert many output plugins (#12497) 2023-01-25 13:02:29 -07:00
Sven Rebhan a3e4a14233
fix(secretstores): fix handling of TOML strings (#12490) 2023-01-11 07:43:20 -07:00
Sven Rebhan e9c0487e54
fix(agent): handle float time with fractions of seconds correctly (#12491) 2023-01-11 07:42:33 -07:00
Joshua Powers 2604fb684b
fix(agent): Only set default snmp after reading all configs (#12457) 2023-01-10 19:00:15 +01:00
Sven Rebhan b5dcc49250
fix(secretstores): Fix handling of 'id' and print failing secret-store (#12468) 2023-01-09 07:27:07 -07:00
Sven Rebhan 9f55bc605e
fix(secretstores): cleanup duplicate printing (#12401) 2022-12-15 06:35:05 -07:00
Sven Rebhan c98115e744
feat: secret-store implementation (#11232) 2022-12-08 09:53:06 -07:00
Thomas Casteleyn c883673cdb
feat(agent): Deprecate active usage of netsnmp translator (#12358) 2022-12-08 07:18:09 -07:00
Sven Rebhan 337e4e34bc
chore: improve processor ordering (#12308) 2022-11-30 09:28:23 -07:00
Sven Rebhan 0f8dff9b8d
feat(serializers.json): Support serializing JSON nested in string fields (#12260) 2022-11-18 11:53:13 +01:00
Paweł Żak cdc622e9db
chore: Fix linter findings for prealloc (part1) (#12228) 2022-11-15 18:57:50 +01:00
Paweł Żak 236af553a3
chore: wrap long lines in other locations (#12219) 2022-11-11 06:32:11 -07:00
Sebastian Spaink 6a29dcba45
fix: Run processors in config order (#12113) 2022-11-08 15:16:26 -06:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Ilya Arkhanhelsky 9d18c973cf
fix(agent): watch for changes in configuration files in config directories (#12127) 2022-11-07 20:54:52 +01:00
Joshua Powers a536764bf1
fix(serializers.splunkmetric): provide option to remove event metric tag (#12024) 2022-11-01 06:41:46 -06:00
Paweł Żak 9d9eb403a6
chore: Review of //nolint comments (#12088) 2022-10-26 12:06:08 +02:00
Joshua Powers 73bac76268
fix(config): set default parser (#12076) 2022-10-24 13:51:07 -06:00
Sven Rebhan 87125f0524
fix(processors): Correctly setup processors (#12081) 2022-10-24 21:21:24 +02:00
Sven Rebhan 76d7a95400
fix: Restore warning on unused config option(s) (#12063) 2022-10-21 11:09:20 +02:00
Paweł Żak 85b7590ff9
chore: resolve linter issues for confusing-naming and confusing-results (#11956) 2022-10-12 13:19:47 -06:00
Sebastian Spaink b7591fd67d
chore: Resolve linter issues in config.go and config_test.go (#11929) 2022-10-04 17:26:02 +02:00
Sven Rebhan 8a9c2eec85
chore(processors): Convert processors to `ParserPlugin`s (#11600) 2022-09-26 22:24:34 +02:00
Joshua Powers d091a59e66
fix: re-allow specifying the influx parser type (#11806) 2022-09-21 13:02:41 -06:00
Sven Rebhan 3b3584b40b
fix(parsers): Memory leak for plugins using ParserFunc. (#11815) 2022-09-16 08:50:26 -06:00
Sebastian Spaink b5f7ca4e08
fix: Clear error message when provided config is not a text file (#11787) 2022-09-13 11:43:03 -05:00
Fritz Reichwald ca32cdc6e6
fix: add missing entry json_transformation to missingTomlField (#11779) 2022-09-09 07:26:12 -06:00
Sebastian Spaink a57434eb4e
feat: Migrate to urfave/cli (#11700) 2022-08-24 21:46:58 -05:00
Sven Rebhan f1ce84f02d
feat: tool to build custom Telegraf builds (#11524) 2022-08-19 13:38:03 -06:00
Conor Evans b76d794968
feat(serializers.prometheus): Provide option to reduce payload size by removing HELP from payload (#11690) 2022-08-18 09:22:40 +02:00
Sven Rebhan 09eb7ee111
chore: Move aws credentials to plugins/common. (#11681) 2022-08-16 19:04:30 +02:00
Bruce (Zhihao) Li 5b9aee11b8
fix: Updating credentials file to not use endpoint_url parameter (#10841) 2022-07-29 08:55:11 -06:00
Sven Rebhan 3ad9fe73ba
chore: More parser cleanup (#11532) 2022-07-28 15:30:36 -05:00
Sven Rebhan 9f3a7414a9
feat(parsers.json): Allow JSONata based transformations in JSON serializer (#11251) 2022-07-21 18:37:36 +02:00
Joshua Powers 0fced8872a
chore: Update CRLF line endings in agent.conf to LF (#11501) 2022-07-14 10:55:26 +02:00
reimda c25f9a0e83
fix: Update prometheus parser to be a new style parser plugin (#11440) 2022-07-06 10:07:53 -06:00
Sven Rebhan 7d83b076c2
fix: add reset-mode flag for CSV parser (#11288) 2022-06-30 12:11:25 -06:00
Sven Rebhan f8766bc1b1
feat: Migrate dropwizard parser to new style (#11371) 2022-06-29 17:11:27 -05:00
Sven Rebhan 9ea9314e27
feat: Migrate logfmt parser to new style (#11366) 2022-06-29 23:31:22 +02:00