Commit Graph

47 Commits

Author SHA1 Message Date
Sven Rebhan e04d62dd16
chore: Embed sample configurations into README for processors (#11189) 2022-05-25 08:59:41 -06:00
Sebastian Spaink d345348834
chore(processors): migrate sample configs into separate files (#11125) 2022-05-18 11:29:43 -05:00
Sebastian Spaink b139ee7997
fix: update starlark 7a1108eaa012->d1966c6b9fcd (#10940) 2022-04-12 07:54:25 -06:00
Sebastian Spaink be0008f9e2
feat: migrate processor plugins to new sample config format (#10913) 2022-04-06 14:49:41 -06:00
Paweł Żak 2b1a79f327
fix: Linter fixes for plugins/processors/[a-z]* (#10161)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-11-24 12:38:08 -07:00
Joshua Powers 4605c977da
chore: clean up all markdown lint errors in processor plugins (#10157) 2021-11-24 11:47:11 -07:00
Nicolas Filotto 4f2ade5305
feat: Add support of aggregator as Starlark script (#9419) 2021-11-18 15:37:59 -07:00
Sven Rebhan 112ef7fc26
fix: starlark pop operation for non-existing keys (#9954) 2021-10-21 12:55:23 -06:00
James Sorensen f6478ed128
feat: Starlark processor example for processing sparkplug_b messages (#9513) 2021-10-05 08:37:41 -06:00
Eng Zer Jun 6a3b27126a
refactor: move from io/ioutil to io and os package (#9811) 2021-09-28 15:16:32 -06: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
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
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
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
Nicolas Filotto 8ddbab47a4
Allow to provide constants to a starlark script (#8772) 2021-02-01 14:34:44 -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
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
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 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
Steven Soroka bbc2aa660d
improve the quality of starlark docs by executing them as tests (#8020) 2020-08-24 11:35:29 -04:00
Samantha Wang 901e63e37d
add example input/outputs to starlark examples (#7980)
* add sample input/outputs to starlark examples

* update ratio.star with example input/outputs

* Update rename.star

* update scale.star with input/output examples

* fix spacing

* fix spacing
2020-08-19 19:26:35 -04:00
Sam Dillard 6c4636b860
add pivot example for starlark processor (#7976) 2020-08-12 11:08:55 -04:00
Samantha Wang 903a065a0d
Add logic starlark example (#7864) 2020-07-20 19:45:25 -07:00
pierwill f9b4138758
Edit Starlark README (#7832) 2020-07-14 16:05:22 -07:00
Daniel Nelson 413398d1a1
Add minimum version for new plugins (#7810) 2020-07-09 11:29:12 -07:00
Daniel Nelson c7cce961c3
Add starlark processor (#7660) 2020-06-23 14:15:14 -07:00