Commit Graph

143 Commits

Author SHA1 Message Date
Logan 370836d436
Add UTF-8 sanitizer to Strings plugin (#9118)
Adds a new option for the Strings processer to sanitize strings so that they conform to utf-8
2021-04-29 19:46:36 -05:00
David Bennett 79b1ac1f06
Converter processor: add support for large hexadecimal strings (#9160)
* add oauth2 to http input

* reset not included changes

* reset not included changes

* reset not included changes

* add hexadecimal parser changes

* add linter changes

* add documentation note
2021-04-28 12:31:48 -04:00
Nicolas Filotto 4d00e21630
Add time.star and math.star to Starlark readme lib section (#9167) 2021-04-21 12:16:02 -07:00
Samantha Wang 243488c266
add starlark current timestamp example 2021-04-20 14:26:15 -07:00
David Bennett da5991d16c
Add time.now() starlark processor example test. (#9133) 2021-04-19 11:14:53 -04:00
Tuan Nguyen Huy 7cbde183de
Support float64 in enum processor (#8911) 2021-04-13 17:31:07 -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
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Nicolas Filotto c66ccee46f
Allow to specify nanoseconds to timestamp in Starlark Processor (#9105) 2021-04-08 14:02:29 -04:00
Helen Weller 885bf273a9
Starlark script for renaming prometheus remote write metrics (#9074) 2021-03-31 15:08:34 -04:00
Thomas Casteleyn ffe92a7658
Don't walk the entire interface table to just retrieve one field (#9043) 2021-03-29 17:05:19 -06:00
Steven Soroka e6165ecd18
readme fix (#9064)
closes #9060
2021-03-29 10:40:28 -04:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -04:00
Nicolas Filotto 991efd5e12
Add the math module to the Starlark Processor (#9042) 2021-03-24 14:51:15 -04:00
Nicolas Filotto f267f342ae
Add support of the time module in Starlark Processor (#9004) 2021-03-23 13:45:29 -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
Peter (Stig) Edwards 67e8d766c5
Add a starlark example showing how to obtain IOPS (#8996) 2021-03-18 11:39:29 -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
Steven Soroka b263c1fedf
accurate state documentation for Starlark 2021-03-11 16:35:26 -05:00
Sam Dillard 380911ffb3
Add Starlark parsing example of nested JSON (#8675)
* Add Starlark parsing example of nested JSON

* add correct Example Input and Output fields to make script testable

* removed logging from script

* remove logging.star load statement
2021-03-09 10:24:57 -06:00
Peter (Stig) Edwards 1b7f445ee5
Correct Q+A about state (#8918) 2021-03-05 10:25:45 -05:00
Sam Dillard 858bcd4bba
Add field key length output by field type in schema_sizing Starlark script (#8934) 2021-03-05 10:20:24 -05:00
Sam Dillard 30a0fd04cd
Add Starlark script for estimating Line Protocol cardinality (#8852) 2021-03-02 16:55:27 -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
reimda 4d61935dec
Fix mutex locking around ifname cache (#8873) 2021-02-19 11:31:25 -07: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
Patryk Małek 7e78a08eba
AWS EC2 metadata processor Using StreamingProcessor (#8707) 2021-02-04 17:02:27 -05:00
Nicolas Filotto 8ddbab47a4
Allow to provide constants to a starlark script (#8772) 2021-02-01 14:34:44 -05:00
Helen Weller d41569caed
Integration test audit (#8725) 2021-01-26 11:06:12 -07:00
Germán Jaber 841e971ace
Fix spelling and clarify docs (#8164) 2020-12-23 10:43:21 -06:00
Sebastian Spaink 50265d9023
Allow globs (wildcards) in config for tags/fields in enum processor (#8598)
* Allow glob in enum processor config

* change assert to require
2020-12-18 15:41:39 -06:00
David Bennett f7950be107
Adding support for new lines in influx line protocol fields. (#8499) 2020-12-04 16:47:58 -05:00
Steven Soroka 0eeab49efd add to starlark readme 2020-12-01 14:47:50 -05:00
Nicolas Filotto 01fc69da47
Add the shared state to the global scope to get previous data (#8447) 2020-11-30 15:44:21 -05:00
Steven Soroka 42eacb3a42 add log warning to starlark drop-fields example 2020-11-27 12:20:21 -05:00
Sven Rebhan 0ce55bbd4a
Starlark example dropbytype (#8438) 2020-11-27 11:28:12 -05:00
Paweł Żak 0fcfee0caf
Fix tests for Windows - part 1 (#8414) 2020-11-23 10:40:32 -05:00
Nicolas Filotto bbd4e80409
Show how to return a custom error with the Starlark processor (#8439) 2020-11-20 11:28:56 -05:00
Nicolas Filotto ee861fdeed
Show how to return several metrics with the Starlark processor (#8423) 2020-11-17 16:13:25 -05:00
Nicolas Filotto 0c15569174
Support logging in starlark (#8408) 2020-11-16 15:22:40 -05:00
Nicolas Filotto ca041063d9
Allow to catch errors that occur in the apply function (#8401) 2020-11-13 14:26:07 -05:00
a-bali 87fcea5e9b
Add support for fields and protocol lookups in port_name. (#8157) 2020-10-19 10:49:48 -04:00
Steven Soroka cfce605bed add converter test 2020-10-09 16:10:57 -04:00
Steven Soroka 4fa620fd6e
Add note about json processing to docs 2020-09-30 16:20:50 -04:00
Steven Soroka a475d765fb
add json parsing support to starlark (#8168) 2020-09-29 17:37:54 -04:00
Steven Soroka b4fb1adc6f
fix panic on streaming processers using logging (#8176) 2020-09-28 11:58:23 -04:00
Steven Soroka 689b463998
Starlark readme url fix 2020-09-22 11:38:45 -04:00
Steven Soroka 5a09735020 minor docs cleanup 2020-09-18 15:06:58 -04:00
M0rdecay 39f4c365b0
Increasing the metric buffer (#8145) 2020-09-18 13:50:22 -04:00