telegraf/plugins/aggregators/minmax
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
..
README.md Documentation improvements 2016-11-08 13:55:37 +00:00
minmax.go Fixup some code based on feedback from @dgnorton 2016-10-12 14:50:19 +01:00
minmax_test.go Implement telegraf's own full metric type 2016-12-01 18:17:02 +00:00

README.md

MinMax Aggregator Plugin

The minmax aggregator plugin aggregates min & max values of each field it sees, emitting the aggrate every period seconds.

Configuration:

# Keep the aggregate min/max of each metric passing through.
[[aggregators.minmax]]
  ## General Aggregator Arguments:
  ## The period on which to flush & clear the aggregator.
  period = "30s"
  ## If true, the original metric will be dropped by the
  ## aggregator and will not get sent to the output plugins.
  drop_original = false

Measurements & Fields:

  • measurement1
    • field1_max
    • field1_min

Tags:

No tags are applied by this aggregator.

Example Output:

$ telegraf --config telegraf.conf --quiet
system,host=tars load1=1.72 1475583980000000000
system,host=tars load1=1.6 1475583990000000000
system,host=tars load1=1.66 1475584000000000000
system,host=tars load1=1.63 1475584010000000000
system,host=tars load1_max=1.72,load1_min=1.6 1475584010000000000
system,host=tars load1=1.46 1475584020000000000
system,host=tars load1=1.39 1475584030000000000
system,host=tars load1=1.41 1475584040000000000
system,host=tars load1_max=1.46,load1_min=1.39 1475584040000000000