Различия
Здесь показаны различия между двумя версиями данной страницы.
comet:telegraf [2018/02/23 15:25] levhav создано |
comet:telegraf [2019/12/18 01:58] |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== Настройка telegraf ====== | ||
- | |||
- | |||
- | |||
- | <code ini> | ||
- | # # Read metrics from one or more commands that can output to stdout | ||
- | [[inputs.exec]] | ||
- | # ## Commands array | ||
- | commands = [ | ||
- | "/etc/comet-server/telegraf.sh" | ||
- | ] | ||
- | # | ||
- | # ## Timeout for each command to complete. | ||
- | timeout = "5s" | ||
- | # | ||
- | # ## measurement name suffix (for separating different commands) | ||
- | name_suffix = "CppCpmet" | ||
- | # | ||
- | # ## Data format to consume. | ||
- | # ## Each data format has its own unique set of configuration options, read | ||
- | # ## more about them here: | ||
- | # ## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md | ||
- | data_format = "json" | ||
- | </code> | ||