Telegraf Input Plugin - Telegraf 输入组件

Prometheus:

The prometheus input plugin gathers metrics from HTTP servers exposing metrics in Prometheus format.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/prometheus/README.md

 

Tail:

The tail plugin "tails" a logfile and parses each log message.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/tail/README.md

 

Exec:

The exec plugin executes all the commands in parallel on every interval and parses metrics from their output in any one of the accepted Input Data Formats.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/exec/README.md

 

Execd:

The execd plugin runs an external program as a daemon. The programs must output metrics in any one of the accepted Input Data Formats on its standard output.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/execd/README.md

 

File:

The file plugin updates a list of files every interval and parses the contents using the selected input data format.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/file/README.md

 

HTTP Response:

This input plugin checks HTTP/HTTPS connections.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/http_response/README.md

 

HTTP Listener v2:

HTTP Listener v2 is a service input plugin that listens for metrics sent via HTTP. Metrics may be sent in any supported data format.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/http_listener_v2/README.md

 

HTTP Input:

The HTTP input plugin collects metrics from one or more HTTP(S) endpoints. The endpoint should have metrics formatted in one of the supported input data formats. Each data format has its own unique set of configuration options which can be added to the input configuration.

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/http/README.md

 

Processes:

This plugin gathers info about the total number of processes and groups them by status (zombie, sleeping, running, etc.)

https://github.com/influxdata/telegraf/blob/release-1.16/plugins/inputs/processes/README.md

 

关于配置:https://docs.influxdata.com/telegraf/v1.16/administration/configuration/

Input configuration

The following config parameters are available for all inputs: 这些参数适用于每一个输入组件:

  • interval: How often to gather this metric. Normal plugins use a single global interval, but if one particular input should be run less or more often, you can configure that here.
  • name_override: Override the base name of the measurement. (Default is the name of the input).
  • name_prefix: Specifies a prefix to attach to the measurement name.
  • name_suffix: Specifies a suffix to attach to the measurement name.
  • tags: A map of tags to apply to a specific input’s measurements.

 

  

posted @ 2020-10-30 10:48  Pekkle  阅读(991)  评论(0编辑  收藏  举报