Go 编写的代理程序,Telegraf v0.1.9 发布

xdld 9年前

Telegraf 是一个用 Go 编写的代理程序,可收集系统和服务的统计数据,并写入到 InfluxDB 数据库。

Telegraf 具有内存占用小的特点,通过插件系统开发人员可轻松添加支持其他服务的扩展。

目前已有的插件包括:

  • System (memory, CPU, network, etc.)

  • Docker

  • MySQL

  • PostgreSQL

  • Redis

telegraf v0.1.9 发布,更新内容如下:
  • InfluxDB output config change: url is now urls, and is a list. Config files will still be backwards compatible if only url is specified.

  • The -test flag will now output two metric collections

  • Support for filtering telegraf outputs on the CLI -- Telegraf will now allow filtering of output sinks on the command-line using the -outputfilterflag, much like how the -filter flag works for plugins.

  • Support for filtering on config-file creation -- Telegraf now supports filtering to -sample-config command. You can now runtelegraf -sample-config -filter cpu -outputfilter influxdb to get a config file with only the cpu plugin defined, and the influxdb output defined.

  • Breaking Change: The CPU collection plugin has been refactored to fix some bugs and outdated dependency issues. At the same time, I also decided to fix a naming consistency issue, so cpu_percentageIdle will become cpu_usage_idle. Also, all CPU time measurements now have it indicated in their name, so cpu_idle will become cpu_time_idle. Additionally, cpu_time measurements are going to be dropped in the default config.

  • Breaking Change: The memory plugin has been refactored and some measurements have been renamed for consistency. Some measurements have also been removed from being outputted. They are still being collected by gopsutil, and could easily be re-added in a "verbose" mode if there is demand for it.

特性

  • #143: InfluxDB clustering support

  • #181: Makefile GOBIN support. Thanks @Vye!

  • #203: AMQP output. Thanks @ekini!

  • #182: OpenTSDB output. Thanks @rplessl!

  • #187: Retry output sink connections on startup.

  • #220: Add port tag to apache plugin. Thanks @neezgee!

  • #217: Add filtering for output sinks and filtering when specifying a config file.

Bug修复

  • #170: Systemd support

  • #175: Set write precision before gathering metrics

  • #178: redis plugin, multiple server thread hang bug

  • Fix net plugin on darwin

  • #84: Fix docker plugin on CentOS. Thanks @neezgee!

  • #189: Fix mem_used_perc. Thanks @mced!

  • #192: Increase compatibility of postgresql plugin. Now supports versions 8.1+

  • #203: EL5 rpm support. Thanks @ekini!

  • #206: CPU steal/guest values wrong on linux.

  • #212: Add hashbang to postinstall script. Thanks @ekini!

  • #212: Fix makefile warning. Thanks @ekini!

更多内容请看:CHANGELOG.md

下载地址:v0.1.9