This page documents an earlier version of Telegraf. Telegraf v1.26 is the latest stable version. View this page in the v1.26 documentation.
An agent is the core part of Telegraf that gathers metrics from the declared input plugins and sends metrics to the declared output plugins, based on the plugins enabled by the given configuration.
Related entries: input plugin, output plugin
Aggregator plugins receive raw metrics from input plugins and create aggregate metrics from them. The aggregate metrics are then passed to the configured output plugins.
Related entries: input plugin, output plugin, processor plugin
The Telegraf agent sends metrics to output plugins in batches, not individually. The batch size controls the size of each write batch that Telegraf sends to the output plugins.
Related entries: output plugin
The default global interval for collecting data from each input plugin. The collection interval can be overridden by each individual input plugin’s configuration.
Related entries: input plugin
Collection jitter is used to prevent every input plugin from collecting metrics simultaneously, which can have a measurable effect on the system. Each collection interval, every input plugin will sleep for a random time between zero and the collection jitter before collecting the metrics.
Related entries: collection interval, input plugin
Programs built outside of Telegraf that run through the
execd plugin. Provides flexibility to add functionality that doesn’t exist in internal Telegraf plugins.
The global interval for flushing data from each output plugin to its destination. This value should not be set lower than the collection interval.
Related entries: collection interval, flush jitter, output plugin
Flush jitter is used to prevent every output plugin from sending writes simultaneously, which can overwhelm some data sinks. Each flush interval, every output plugin will sleep for a random time between zero and the flush jitter before emitting metrics. This helps smooth out write spikes when running a large number of Telegraf instances.
Related entries: flush interval, output plugin
Input plugins actively gather metrics and deliver them to the core agent, where aggregator, processor, and output plugins can operate on the metrics. In order to activate an input plugin, it needs to be enabled and configured in Telegraf’s configuration file.
Related entries: aggregator plugin, collection interval, output plugin, processor plugin
The metric buffer caches individual metrics when writes are failing for an output plugin. Telegraf will attempt to flush the buffer upon a successful write to the output. The oldest metrics are dropped first when this buffer fills.
Related entries: output plugin
Output plugins deliver metrics to their configured destination. In order to activate an output plugin, it needs to be enabled and configured in Telegraf’s configuration file.
Related entries: aggregator plugin, flush interval, input plugin, processor plugin
The precision configuration setting determines how much timestamp precision is retained in the points received from input plugins. All incoming timestamps are truncated to the given precision.
Telegraf then pads the truncated timestamps with zeros to create a nanosecond timestamp; output plugins will emit timestamps in nanoseconds.
Valid precisions are
For example, if the precision is set to
ms, the nanosecond epoch timestamp
1480000000123456789 would be truncated to
1480000000123 in millisecond precision and then padded with zeroes to make a new, less precise nanosecond timestamp of
Output plugins do not alter the timestamp further. The precision setting is ignored for service input plugins.
Related entries: aggregator plugin, input plugin, output plugin, processor plugin, service input plugin
Processor plugins transform, decorate, and/or filter metrics collected by input plugins, passing the transformed metrics to the output plugins.
Related entries: aggregator plugin, input plugin, output plugin
service input plugin
Service input plugins are input plugins that run in a passive collection mode while the Telegraf agent is running. They listen on a socket for known protocol inputs, or apply their own logic to ingested metrics before delivering them to the Telegraf agent.
Related entries: aggregator plugin, input plugin, output plugin, processor plugin
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.