Paweł Żak
2ccc79ce27
test(linters): Enable `testifylint`: `contains`, `encoded-compare` and `regexp` ( #16262 )
2024-12-11 14:32:16 -06:00
Joshua Powers
02473069f4
chore: Add metric and batch benchmark to serializers ( #14277 )
2023-11-13 09:30:19 +01:00
Sven Rebhan
8d1bf60bce
fix(serializers.json): Append newline for batch-serialization ( #14150 )
2023-10-23 07:47:55 -06:00
Sven Rebhan
c3ce6a8e12
chore(config): Split tests to avoid cyclic import ( #13371 )
2023-06-02 12:32:10 +02:00
Sven Rebhan
ece214e5a9
chore(serializers.json): Migrate to new-style framework ( #13335 )
2023-05-25 13:22:14 -06:00
Sven Rebhan
a90b6eb119
fix(serializers.json): allow stateful transformations ( #12735 )
2023-02-24 07:16:05 -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
236af553a3
chore: wrap long lines in other locations ( #12219 )
2022-11-11 06:32:11 -07:00
Sven Rebhan
9f3a7414a9
feat(parsers.json): Allow JSONata based transformations in JSON serializer ( #11251 )
2022-07-21 18:37:36 +02: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
Heiko Schlittermann
b9aa9839fb
feat: Add json_timestamp_layout option ( #8229 )
2021-09-21 09:12:44 -06: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
Daniel Nelson
c4e9f72936
Ignore fields with NaN or Inf floats in the JSON serializer ( #7426 )
2020-04-28 13:41:25 -07:00
Daniel Nelson
73c22a8189
Add SerializeBatch method to the Serializer interface ( #4107 )
2018-05-04 18:27:31 -07:00
Cameron Sparr
af6e7b9531
More unit tests for new metric
2016-12-01 19:07:14 +00: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
Cameron Sparr
332f678afb
JSON serializer: include unit test with escapes
2016-12-01 18:16:52 +00:00
Marcelo Salazar
d66d66e74b
added json serializer
...
closes #878
2016-03-17 13:51:16 -06:00