Commit Graph

68 Commits

Author SHA1 Message Date
Paweł Żak 4e7821a4fd
chore: Fix linter findings for `revive:unused-receiver` in `agent`, `cmd`, `config`, `internal`, `metric`, `migrations`, `models`, `testutils` and `tools` (#16340) 2025-01-15 20:58:58 +01:00
Sven Rebhan 18cdb1a99e
chore(serializers)!: Remove old-style creation (#15971) 2024-12-05 08:32:10 -06:00
Paweł Żak cf2a820cac
chore: Enable `testifylint:go-require` checker (#16158) 2024-11-13 01:32:57 -06:00
Paweł Żak 0d30797c08
chore: Enable `revive:enforce-slice-style` rule (#16173) 2024-11-13 01:24:35 -06:00
Paweł Żak 70e1cbc0be
chore(deps): Bump golangci-lint from v1.61.0 to v1.62.0 (#16172) 2024-11-12 15:49:39 -06: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
Paweł Żak 43590ca730
chore: Fix linter findings for `revive:comment-spacings` (part 1) (#15896) 2024-09-19 10:55:45 +02:00
Mikhail Konovalov 53fb5adac2
chore(parser.json_v2): Error out if no config is provided (#15844) 2024-09-09 10:04:37 -05:00
Sven Rebhan ef41198481
chore(logging): Implement early logging (#15629) 2024-07-26 09:09:21 -06:00
Dane Strandboge 612b5ad8b1
chore: Fix errcheck CI warnings outside of plugins directory (#15390) 2024-06-04 10:33:37 +02:00
Viktor Szépe 31a1d34d99
chore: Fix typos throughout codebase (#15338) 2024-05-31 10:26:37 +02:00
Sven Rebhan 71b58ddaf5
chore(log): Restructure and cleanup logging code (#15234) 2024-05-10 16:43:43 -05:00
Sven Rebhan 7ce22b2490
fix(secrets): Avoid count underflow by only counting initialized secrets (#14991) 2024-03-14 13:31:32 -05:00
Sven Rebhan 5847e1d9ee
test(config): Add unit-test for comments in arrays (#14875) 2024-02-22 11:38:55 -06:00
Joshua Powers 2e481081de
fix(config): Reword error message about missing config option (#14858) 2024-02-20 14:38:28 -06:00
Paweł Żak c4dbe65732
chore(linters): Bump golangci-lint to v1.56.1 (#14759) 2024-02-12 23:26:10 +01: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 84b3b587da
feat(prometheus): Allow to specify metric type (#13874) 2023-09-11 07:45:16 -06: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 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
Sven Rebhan c3ce6a8e12
chore(config): Split tests to avoid cyclic import (#13371) 2023-06-02 12:32:10 +02: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 d06fb73228
chore(serializers.carbon2): Migrate to new-style framework (#13291) 2023-05-19 12:44:26 -06: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
Sven Rebhan f87916aaa9
feat: Plugin state-persistence (#12166) 2023-03-01 15:34:48 -07:00
Eng Zer Jun 4d0f05980e
test: Use `t.Setenv` to set env vars (#12621) 2023-02-10 11:46:14 +01: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 337e4e34bc
chore: improve processor ordering (#12308) 2022-11-30 09:28:23 -07: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
Ilya Arkhanhelsky 9d18c973cf
fix(agent): watch for changes in configuration files in config directories (#12127) 2022-11-07 20:54:52 +01: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 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
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
Sven Rebhan 3ad9fe73ba
chore: More parser cleanup (#11532) 2022-07-28 15:30:36 -05:00
Sven Rebhan 7d83b076c2
fix: add reset-mode flag for CSV parser (#11288) 2022-06-30 12:11:25 -06:00
Sven Rebhan 9ea9314e27
feat: Migrate logfmt parser to new style (#11366) 2022-06-29 23:31:22 +02:00