Telegraf: Difference between revisions
Jump to navigation
Jump to search
Line 63: | Line 63: | ||
=Lancement= |
=Lancement= |
||
<pre> |
<pre> |
||
telegraf -config telegraf.conf -input-filter cpu:mem:disk:diskio:swap:net:netstat |
telegraf -config telegraf.conf -input-filter cpu:mem:disk:diskio:swap:net:netstat -output-filter influxdb |
||
</pre> |
</pre> |
||
Revision as of 14:13, 4 February 2016
agent written in Go for collecting metrics from the system it's running on, or from other services, and writing them into InfluxDB.
Telegraf propose de nombreux plugins pour aerospike apache bcache disque docker elasticsearch exec (generic JSON-emitting executable plugin) haproxy httpjson (generic JSON-emitting http service plugin) influxdb jolokia leofs lustre2 mailchimp memcached mongodb mysql nginx nsq phpfpm phusion passenger ping postgresql powerdns procstat prometheus puppetagent rabbitmq redis rethinkdb sql server (microsoft) twemproxy zfs zookeeper sensors snmp win_perf_counters (windows performance counters) system
Installation
IL faut préalablement installer et démarrer InfluxDB.
wget http://get.influxdb.org/telegraf/telegraf_0.10.1-1_amd64.deb sudo dpkg -i telegraf_0.10.1-1_amd64.deb telegraf -help telegraf --usage mysql telegraf --usage influxdb
Configuration
telegraf -sample-config > telegraf.conf
Editer le fichier de configuration telegraf.conf
Lancement
telegraf -config telegraf.conf -input-filter cpu:mem:disk:diskio:swap:net:netstat -output-filter influxdb
Requêtes
SHOW DATABASES USE telegraf SELECT * FROM cpu SELECT * FROM cpu, mem LIMIT 1 SELECT * FROM /.*/ LIMIT 1