Telegraf aggregator plugins
This page documents an earlier version of Telegraf. Telegraf v1.19 is the latest stable version.
Aggregators emit new aggregate metrics based on the metrics collected by the input plugins.
Supported Telegraf aggregator plugins
The BasicStats aggregator plugin gives
stdev for a set of values, emitting the aggregate every period seconds.
The Histogram aggregator plugin creates histograms containing the counts of field values within a range.
Values added to a bucket are also added to the larger buckets in the distribution. This creates a cumulative histogram.
Like other Telegraf aggregator plugins, the metric is emitted every period seconds. Bucket counts, however, are not reset between periods and will be non-strictly increasing while Telegraf is running.
The MinMax aggregator plugin aggregates
max values of each field it sees, emitting the aggregrate every period seconds.
The ValueCounter aggregator plugin counts the occurrence of values in fields and emits the counter once every ‘period’ seconds.
A use case for the ValueCounter aggregator plugin is when you are processing an HTTP access log with the Logparser input plugin and want to count the HTTP status codes.
The fields which will be counted must be configured with the fields configuration directive. When no fields are provided, the plugin will not count any fields.
The results are emitted in fields, formatted as
originalfieldname_fieldvalue = count.
ValueCounter only works on fields of the type
string. Float fields are being dropped to prevent the creating of too many fields.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Telegraf and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.