parent
befc906167
commit
6794fd06eb
|
@ -76,9 +76,12 @@ if you don't have it already. You also must build with golang version 1.4+.
|
||||||
|
|
||||||
* Run `telegraf -sample-config > telegraf.conf` to create an initial configuration.
|
* Run `telegraf -sample-config > telegraf.conf` to create an initial configuration.
|
||||||
* Or run `telegraf -sample-config -filter cpu:mem -outputfilter influxdb > telegraf.conf`.
|
* Or run `telegraf -sample-config -filter cpu:mem -outputfilter influxdb > telegraf.conf`.
|
||||||
to create a config file with only CPU and memory plugins defined, and InfluxDB output defined.
|
to create a config file with only CPU and memory plugins defined, and InfluxDB
|
||||||
|
output defined.
|
||||||
* Edit the configuration to match your needs.
|
* Edit the configuration to match your needs.
|
||||||
* Run `telegraf -config telegraf.conf -test` to output one full measurement sample to STDOUT.
|
* Run `telegraf -config telegraf.conf -test` to output one full measurement
|
||||||
|
sample to STDOUT. NOTE: you may want to run as the telegraf user if you are using
|
||||||
|
the linux packages `sudo -u telegraf telegraf -config telegraf.conf -test`
|
||||||
* Run `telegraf -config telegraf.conf` to gather and send metrics to configured outputs.
|
* Run `telegraf -config telegraf.conf` to gather and send metrics to configured outputs.
|
||||||
* Run `telegraf -config telegraf.conf -filter system:swap`.
|
* Run `telegraf -config telegraf.conf -filter system:swap`.
|
||||||
to run telegraf with only the system & swap plugins defined in the config.
|
to run telegraf with only the system & swap plugins defined in the config.
|
||||||
|
|
Loading…
Reference in New Issue