Commit Graph

49 Commits

Author SHA1 Message Date
Paweł Żak 080e9a1338
chore(deps): Bump golangci-lint from v1.64.5 to v2.0.2 (#16683) 2025-03-31 13:52:09 +01:00
Sven Rebhan 18cdb1a99e
chore(serializers)!: Remove old-style creation (#15971) 2024-12-05 08:32:10 -06:00
Paweł Żak fe4246fab2
chore: Enable `revive:enforce-repeated-arg-type-style` rule (#16182) 2024-11-14 16:14:40 +01:00
Paweł Żak f8af593d33
chore: Fix linter findings for `revive:enforce-slice-style` in `plugins/parsers`, `plugins/processors`, `plugins/secretstores` and `plugins/serializers` (#15980) 2024-10-15 13:02:45 +02:00
Paweł Żak 43590ca730
chore: Fix linter findings for `revive:comment-spacings` (part 1) (#15896) 2024-09-19 10:55:45 +02:00
Dane Strandboge 28543bae7c
chore(linters): Fix non-input/output plugin errcheck warnings (#15472) 2024-06-12 07:52:42 -06: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
Joshua Powers 5505a2150a
chore: Enable bad regex gocritic linter (#14295) 2023-11-15 12:35:41 -07:00
Joshua Powers 02473069f4
chore: Add metric and batch benchmark to serializers (#14277) 2023-11-13 09:30:19 +01:00
Paweł Żak 8fbea28ab3
chore(linters): Fix findings found by testifylint: expected-actual (#14229) 2023-11-01 14:09:55 -06:00
Sven Rebhan bbe30f769d
chore(serializers.graphite): Migrate to new-style framework (#13321) 2023-05-24 08:49:41 -06:00
Joshua Powers 7284c126ce
fix(serializers.graphite): Allow for specifying regex to sanitize (#12835) 2023-03-14 11:46:44 +01:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Sven Rebhan 200044a495
docs: fix remaining markdownlinter issues (#12658) 2023-02-09 10:57:08 -07:00
Paweł Żak 960a1f7b14
chore: Fix linter findings for prealloc (part3) (#12246) 2022-11-21 21:53:55 +01:00
Eng Zer Jun 81090be35d
refactor: replace strings.Replace with strings.ReplaceAll (#11079) 2022-05-11 09:53:34 -06:00
Paweł Żak 59eeddb41e
fix: Linter fixes for plugins/serializers/[a-z]* (#10181)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-11-30 14:50:00 -06:00
Joshua Powers c172df21a4
chore: clean up all markdown lint errors in serializer plugins (#10158) 2021-11-24 11:47:23 -07:00
Greg Linton df47b41668
Allow more characters in graphite tags (#9249) 2021-05-18 12:29:30 -04:00
David Bennett 842a788022
Remove error return type from metric.New method (#9116)
* Remove error return type from metric.New method.

* Formatting changes for linter + gofmt

* Additional linter fixes.

* More linter fixes.

* Linter fix.

* address comments
2021-04-13 14:40:03 -04:00
Paweł Żak 8a6907a186
Revive fixes - part 3 (#8872)
* * Revive fixes regarding following set of rules: [rule.var-naming]
2021-03-01 16:04:35 -05:00
Paweł Żak ba66d4facb
Revive fixes - part 1 (#8797)
* Revive fixes regarding following set of rules:
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.indent-error-flow]
[rule.errorf]
2021-02-08 11:18:40 -05:00
ihard 94c75b51a8
Add configurable separator graphite serializer and output (#7545) 2020-05-20 17:15:18 -07:00
Josh Soref bf1eb291f2
Fix assorted spelling mistakes (#7507) 2020-05-15 15:43:32 -07:00
Ilya Antipov 0cad343de7
Support multiple templates for graphite serializers (#7136) 2020-03-31 11:30:21 -07:00
Greg Linton d07bbe24e3 Update link in graphite serializer README 2018-09-21 15:05:36 -07:00
Daniel Nelson 41d528c8ce
Split parser/serializer docs (#4690) 2018-09-17 11:45:08 -07:00
Pavel Boev 7660315e45 Add support for Graphite 1.1.x tags (#4165) 2018-05-21 15:59:56 -07:00
Daniel Nelson 73c22a8189
Add SerializeBatch method to the Serializer interface (#4107) 2018-05-04 18:27:31 -07:00
Daniel Nelson dd2c60e620
Fix graphite serialization of unsigned ints (#4033) 2018-04-18 12:13:25 -07:00
Daniel Nelson 1c0f63a90d
Add new line protocol parser and serializer, influxdb output (#3924) 2018-03-27 17:30:51 -07:00
Daniel Nelson 4558aeddeb
Remove graphite serializer replacement of dot with underscore in field key (#3705) 2018-01-22 12:04:16 -08:00
Pierre Fersing 8364417009 Whitelist allowed char classes for graphite output (#3473) 2017-11-15 14:44:20 -08:00
Daniel Nelson 98e784faf3
Sort metrics before comparing in graphite test 2017-09-05 12:50:30 -07:00
Daniel Nelson 8225bd0173
Convert bool fields to int in graphite serializer 2017-08-29 16:22:03 -07:00
Seua Polyakov 3806424aab Skip non-numerical values in graphite format (#3179) 2017-08-29 15:59:38 -07:00
Cameron Sparr e5c7a71d8e Fix unit tests for new metric implementation 2016-12-01 18:17:02 +00:00
Cameron Sparr db7a4b24b6 Implement telegraf's own full metric type
main reasons behind this:
- make adding/removing tags cheap
- make adding/removing fields cheap
- make parsing cheaper
- make parse -> decorate -> write out bytes metric flow much faster

Refactor serializer to use byte buffer
2016-12-01 18:17:02 +00:00
Phil b63dedb74d sanitize parenthesis (#1701) 2016-09-05 14:30:40 +01:00
Cameron Sparr a0e42f8a61 Sanitize graphite characters in field names
also sanitize the names at a higher scope for better clarity

closes #1637
2016-08-17 16:56:31 +01:00
Cameron Sparr bfdd665435 Copy metrics for each configured output
This is for better thread-safety when running with multiple outputs,
which can cause very odd panics at very high loads

primarily this is to address #1432

closes #1432
2016-07-14 09:16:29 -06:00
Cameron Sparr 821d3fafa6 Refactor SerializeBucketName to be read-only for struct fields 2016-07-14 09:16:29 -06:00
Cameron Sparr 7c9b312cee Make race detector build in CI 2016-07-14 09:16:29 -06:00
Cameron Sparr 2d4864e126 nil metric list panic fix 2016-06-29 12:08:36 +02:00
Bob Zoller 1390c22004 sanitize * to - in graphite serializer
closes #1110
2016-04-27 18:05:44 -06:00
Cameron Sparr f5878eafb9 Create a template system for the graphite serializer
closes #925
closes #879
2016-04-11 16:30:18 -06:00
JP e940f99646 sanitize known issue characters from graphite tag name 2016-03-21 10:01:51 -05:00
bastard baa38d6266 Fixing Librato plugin
closes #722
2016-02-29 11:35:45 +00:00
Cameron Sparr a9c135488e Add Serializer plugins, and 'file' output plugin 2016-02-12 14:13:49 -07:00