Commit Graph

82 Commits

Author SHA1 Message Date
Sven Rebhan b6b5d34060
Add quantile aggregator plugin (#8594) 2021-02-17 15:22:33 -07: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
Patrick Hemmer 910b726876
Optimize SeriesGrouper & aggregators.merge (#8391)
The previous implementation of SeriesGrouper required breaking a metric object apart into its constituents, converting tags and keys into unoptimized maps, only to have it put them back together into another metric object. This resulted in a significant performance overhead. This overhead was further compounded when the number of fields was large.

This change adds a new AddMetric method to SeriesGrouper which preserves the metric object and removes the back-and-forth conversion.

Additionlly the method used for calculating the metric's hash was switched to use maphash, which is optimized for this case.

----

Benchmarks

Before:

    BenchmarkMergeOne-16          106012	     11790 ns/op
    BenchmarkMergeTwo-16           48529	     24819 ns/op
    BenchmarkGroupID-16           780018	      1608 ns/op

After:

    BenchmarkMergeOne-16          907093	      1173 ns/op
    BenchmarkMergeTwo-16          508321	      2168 ns/op
    BenchmarkGroupID-16         11217788	      99.4 ns/op
2021-01-07 11:39:12 -05:00
Olli-Pekka Lehto 245bef2f3a
Add rate and interval to the basicstats aggregator plugin (#8428) 2020-11-20 15:53:51 -05:00
Felix Edelmann 32d80d2a08
Add non-cumulative histogram (#7071) 2020-03-02 10:59:19 -08:00
Daniel Nelson 5f52b9538d
Fix indention in merge sample config 2020-01-08 10:48:06 -08:00
Samantha Wang d62ff1d25c Update merge aggregator config file in README.md (#6805) 2020-01-08 10:46:01 -08:00
Daniel Nelson fc6fb33067
Add merge aggregator (#6410) 2019-09-26 17:09:44 -07:00
Greg 817c9a69a9 Document and add support to input plugins for logging alias (#6357) 2019-09-23 15:39:50 -07:00
Moritz Maisel 282c8ce096 Add diff and non_negative_diff to basicstats aggregator (#4435) 2019-07-30 23:50:49 -07:00
Daniel Nelson a724bf487f
Add final aggregator (#5820) 2019-05-15 14:46:28 -07:00
Olli-Pekka Lehto 13a00eeca5 Add option to reset buckets on flush to histogram aggregator (#5641) 2019-04-01 11:53:50 -07:00
Daniel Nelson 2857f07af9
Add stats option to basicstats sample config 2019-02-01 12:27:31 -08:00
Daniel Nelson dbe6f594a9
Allow floats in valuecounter aggregator (#5168) 2018-12-26 19:39:34 -08:00
Daniel Nelson 6e5c2f8bb6
Remove outputs blocking inputs when output is slow (#4938) 2018-11-05 13:34:28 -08:00
Trevor Pounds 17360f079c Fix spelling mistakes (#4888) 2018-10-19 11:12:01 -07:00
Daniel Nelson 54e61aa78a
Use FieldList in basicstats to improve performance (#4741) 2018-09-26 19:08:46 -07:00
Adrián López 85eacf268b Fix minmax and basicstats aggregators to use uint64 (#4294) 2018-06-29 19:07:08 -07:00
Piotr Popieluch 3ad10283ef Add valuecounter aggregator plugin (#3523) 2018-06-18 18:06:11 -07:00
Carl Pacey 0a37386c5e Add sum stat to basicstats aggregator (#3797) 2018-03-05 15:26:31 -08:00
Jeff Ashton fcc9c82d34 Add control over which stats to gather in basicstats aggregator (#3580) 2017-12-14 16:56:10 -08:00
Toni Moreno b641f06552 Add new basicstats aggregator (#2167) 2017-10-10 12:02:01 -07:00
Daniel Nelson 70c2b83f00 Update histogram aggregator documentation (#3133) 2017-08-18 13:24:05 -07:00
Vladislav Mugultyanov 9c0aadf445 Add histogram aggregator plugin (#2387) 2017-07-31 11:33:51 -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
Cameron Sparr 1c7715780e Documentation improvements
- fully document aggregator and processor plugins
- improve readme.md

closes #1989
2016-11-08 13:55:37 +00:00
Cameron Sparr 03b2984ac2 Fixup some code based on feedback from @dgnorton 2016-10-12 14:50:19 +01:00
Cameron Sparr 9540a6532f Update influxdb dependency for new models.Tags 2016-10-12 14:50:19 +01:00
Cameron Sparr fead80844e Refactor handling of MinMax functionality into RunningAggregator
allows for easier addition of a sliding window at a later time.

Also makes `period` be a generic argument for all aggregator plugins.
2016-10-12 14:50:19 +01:00
Cameron Sparr ef885eda62 Change minmax aggregator to store float64 2016-10-12 14:50:19 +01:00
Cameron Sparr 64a71263a1 Support Processor & Aggregator Plugins
closes #1726
2016-10-12 14:50:19 +01:00