Commit Graph

176 Commits

Author SHA1 Message Date
Sven Rebhan a90b6eb119
fix(serializers.json): allow stateful transformations (#12735) 2023-02-24 07:16:05 -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 4201f24020
chore: Fix linter findings for errorlint (part2) (#12702)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:08:46 +01:00
Joshua Powers fa26b6498b
docs: remove trailing whitespace (#12660) 2023-02-09 12:35:18 -07:00
Sven Rebhan 200044a495
docs: fix remaining markdownlinter issues (#12658) 2023-02-09 10:57:08 -07:00
Paweł Żak 86cd0c0c24
chore: Fix linter findings for makezero (part4) (#12410) 2022-12-20 11:42:09 +01:00
Luke Winikates 19cc5a7abf
chore(outputs.wavefront): Reduce code duplication (#12332) 2022-12-07 17:04:21 +01:00
Paweł Żak 960a1f7b14
chore: Fix linter findings for prealloc (part3) (#12246) 2022-11-21 21:53:55 +01:00
Paweł Żak 743e023f84
chore: Fix linter findings for makezero (part1) (#12254) 2022-11-21 21:07:07 +01: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
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Joshua Powers a536764bf1
fix(serializers.splunkmetric): provide option to remove event metric tag (#12024) 2022-11-01 06:41:46 -06:00
Joshua Powers 7466834164
docs(serializers.json): specify version of jsonata used (#12117) 2022-10-27 10:29:25 -06:00
suprajanarasimhan 90d8f426b3
refactor: Prevent import from going the wrong way (#12004) 2022-10-13 14:11:24 -06:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Nico Vinzens 872963aee6
fix: sort labels in prometheusremotewrite serializer (#11755) 2022-09-02 09:08:57 -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 9f3a7414a9
feat(parsers.json): Allow JSONata based transformations in JSON serializer (#11251) 2022-07-21 18:37:36 +02:00
Sebastian Spaink 9744c3a6a2
feat: Migrate influx and influx_upstream parsers to new style (#11432) 2022-07-06 15:23:13 -05:00
Sven Rebhan 48fa1990ee
feat: Add CSV serializer (#11307) 2022-06-22 21:06:50 +02:00
Joshua Powers 9c47c9ccbb
fix: re-add event to splunk serializer (#11237) 2022-06-02 12:08:35 -06:00
Eng Zer Jun 81090be35d
refactor: replace strings.Replace with strings.ReplaceAll (#11079) 2022-05-11 09:53:34 -06:00
hulucc 4c42880796
fix: prometheusremotewrite wrong timestamp unit (#10547) 2022-02-16 09:00:37 -07:00
Howie 381dc22723
chore: typos across source code comments (#10361) 2022-01-05 08:20:10 -07:00
crflanigan e7e50a8883
feat: Add option to disable Wavefront prefix conversion (#10252) 2021-12-14 15:04:30 -07: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
Dane Strandboge ddeb6ec890
build: move to new protobuf library (#10019) 2021-11-09 08:51:14 -06:00
Heiko Schlittermann b9aa9839fb
feat: Add json_timestamp_layout option (#8229) 2021-09-21 09:12:44 -06:00
Jake McCrary 514a942a6c
Make prometheus serializer update timestamps and expiration time as new data arrives (#9139) 2021-09-02 08:56:45 -06:00
Greg Linton df47b41668
Allow more characters in graphite tags (#9249) 2021-05-18 12:29:30 -04:00
Helen Weller fe352db590
Remote write compliance updates (#9196) 2021-04-27 11:01:28 -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
Patryk Małek 2b41a1e1f4
Carbon2 serializer: sanitize metric name (#9026) 2021-04-08 10:31:31 -04:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -04:00
Patryk Małek e96955d1bb
Bump prometheus dependency to v2.21.0 (#8795)
* Bump prometheus dependency to v2.21.0

* Make golangci-lint happy
2021-03-25 11:18:50 -05:00
Paweł Żak 5de640b855
Linter fixes - unconvert, revive:empty-lines, revive:var-naming, revive:unused-parameter (#9036)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-24 11:27:46 -04:00
Paweł Żak 74a1acd814
Linter fixes - revive:unused-parameter, unparam, varcheck and unused (#8984)
* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* Linter fixes - revive:unused-parameter and unparam

* "nolint"'s removed

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

* Fixes for "varcheck" and "unused" added.

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-22 12:21:36 -05:00
Helen Weller 67f588cbce
New prometheus remote write parser (#8967) 2021-03-18 11:33:58 -04:00
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Jason Kim (Jun Chul Kim) 9075ae5175
Add MessagePack output data format (#8828) 2021-03-02 14:48:58 -05: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 d9736d543f
Revive fixes - part 2 (#8835)
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -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
Samantha Wang 6ed1431348
update readme: prometheus remote write (#8683) 2021-01-15 10:16:37 -08:00
Steven Soroka 8b4fb2b75e add todo note about wavefront dependencies 2021-01-08 00:07:24 -05:00
Anthony Arnaud 045c3c18b8
Add prometheus remote write serializer (#8360) 2020-12-16 14:11:05 -05:00
Paweł Żak 7c5754ef8d
Fix carbon2 tests (#8254) 2020-12-04 12:37:18 -05:00
Steven Soroka 5cc43879e8 fix carbon tests 2020-10-07 18:39:15 -04:00
Patryk Małek a976e6ff95
Fix bool serialization when using carbon2 (#8162) 2020-10-07 13:54:45 -06:00
Patryk Małek cc089e6eb6
Fix carbon2 serializer not falling through to field separate when carbon2_format field is unset (#8201) 2020-10-07 08:33:09 -06:00
Patryk Małek a3a1224e58
Sumo Logic output plugin: carbon2 default to include field in metric (#8132) 2020-09-29 14:00:33 -04:00
Alex Samorukov 191688ce51
Remove Event field as it is causing issues with pre-trained source types (#8039)
Co-authored-by: Oleksii Samorukov <oleksii_samorukov@mckinsey.com>
2020-09-18 12:20:22 -04:00
Patryk Małek 5534b9955c
Carbon2 configuration option - include field in metric name (#8094) 2020-09-10 12:14:11 -04:00
Patryk Małek e9dcade0a8
Sumo Logic output plugin (#8023) 2020-09-10 10:56:35 -04:00
Daniel Nelson f2dded5b90
Allow histograms with no buckets and summary without quantiles (#7740) 2020-06-30 11:30:34 -07:00
Daniel Nelson 8c017661dc
Document that string fields do not produce prometheus metrics (#7644) 2020-06-18 11:03:11 -07:00
Daniel Nelson 643fb7decc
Remove trailing backslash from tag keys/values (#7652) 2020-06-12 17:54:49 -07: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
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Alex Samorukov f25936b796
Add information about HEC JSON format limitations and workaround (#7459) 2020-05-05 11:12:21 -07:00
Daniel Nelson 973aec42b3
Remove debug fields from spunkmetric serializer (#7455) 2020-05-04 16:21:32 -07:00
Daniel Nelson c4e9f72936
Ignore fields with NaN or Inf floats in the JSON serializer (#7426) 2020-04-28 13:41:25 -07:00
Ilya Antipov 0cad343de7
Support multiple templates for graphite serializers (#7136) 2020-03-31 11:30:21 -07:00
Daniel Nelson f91261d7fe
Add basic benchmark for influx serializer reader (#7078) 2020-02-25 18:58:23 -08:00
Daniel Nelson b5e0577d6b
Use add time for prometheus expiration calculation (#7056) 2020-02-24 15:53:16 -08:00
Daniel Nelson aabc7e7d4f
Replace colon chars in prometheus output labels with metric_version=1 (#6781) 2019-12-10 12:59:16 -08:00
Daniel Nelson eeb4690686
Fix prometheus histogram and summary merging (#6756) 2019-12-04 13:41:33 -08:00
Daniel Nelson 1f7b68a2b2
Allow colons in the prometheus metric name (#6751) 2019-12-03 13:34:00 -08:00
Daniel Nelson 80c5edd48e
Add prometheus serializer and use it in prometheus output (#6703) 2019-11-26 15:46:31 -08:00
Lance O'Connor bc8769ba24 Add Splunk MultiMetric support (#6640) 2019-11-18 12:38:34 -08:00
Marc Venturini 4b6e791908 Fix sensor read error stops reporting of all sensors in temp input (#5941) 2019-06-14 11:27:24 -07:00
Charlie Vieth 1a647fb6ba Improve performance of wavefront serializer (#5842) 2019-06-12 11:59:51 -07:00
Daniel Nelson 968714054a
Fix title in wavefront serializer readme 2019-06-11 13:06:55 -07:00
Daniel Nelson 4197426a73
Ignore errors serializing single metrics (#5943) 2019-06-03 17:34:48 -07:00
Daniel Nelson d25fa3ced3
Document that serializers are not thread-safe 2019-05-17 13:44:29 -07:00
Daniel Nelson ca99569e6f
Fix wavefront serializer option names in README 2019-04-05 15:06:46 -07:00
Pierre Tessier 267a9f182b Add wavefront serializer plugin (#5670) 2019-04-05 14:46:12 -07:00
Daniel Nelson 04f3c4321c
Fix several influx parser issues (#5484)
- Add line/column position
- Allow handlers to return errors
- Fix tag value escaping
- Allow newline in string fields
2019-02-26 10:48:41 -08:00
Olli-Pekka Lehto 5dfa3fa769 Fix InfluxDB output UDP line splitting (#5439) 2019-02-19 15:08:54 -08:00
Frank Reno a15305385f Add carbon2 serializer (#5345) 2019-01-25 18:06:08 -08:00
Daniel Nelson 10b3e45775
Sort fields in nowmetric test 2019-01-08 17:57:38 -08:00
Daniel Nelson c9d8be9ab5
Update changelog and docs for nowmetric serializer 2019-01-08 15:32:49 -08:00
JefMuller e6724bfb7c Add ServiceNow serializer (#4809) 2019-01-08 15:28:00 -08:00
Lance O'Connor 85ee354255 Fix boolean handling in splunkmetric serializer (#5008) 2018-11-21 17:43:42 -08:00
Trevor Pounds 17360f079c Fix spelling mistakes (#4888) 2018-10-19 11:12:01 -07:00
Daniel Nelson 146a30e065
Clarify output format for splunkmetric 2018-09-21 15:12:49 -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
Lance O'Connor c80aab0445 Add Splunk Metrics serializer (#4339) 2018-09-11 13:01:08 -07:00
Daniel Nelson fa30f568ec Skip unserializable metric in influxDB UDP output (#4534) 2018-08-14 14:36:29 -06: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 fe4d3cd117
Fix ints being capped at 32-bits on 32-bit archs (#4054) 2018-04-20 14:56:28 -07:00
Daniel Nelson 29b37e67c2
Allow metrics to be unserializable in influx.Reader (#4047)
Metrics that are unserializable will be logged at debug level, but the
rest of the batch will be sent.  Unserializable metrics can occur during
normal operation such as if you remove all fields from a metric or the
metric cannot fit within the line size limit.
2018-04-19 16:24:31 -07:00
Daniel Nelson dd2c60e620
Fix graphite serialization of unsigned ints (#4033) 2018-04-18 12:13:25 -07:00
Daniel Nelson e4f8a82ee6
Fix newline escaping in line protocol (#3992) 2018-04-09 15:29:52 -07:00
Daniel Nelson b99cd14129
Add influx uint support as a runtime option (#3948) 2018-03-29 13:31:43 -07:00