Suggest running as telegraf user in test mode in README

Fixes #330
This commit is contained in:
Cameron Sparr 2015-11-03 11:18:57 -07:00
parent befc906167
commit 6794fd06eb
1 changed files with 5 additions and 2 deletions

View File

@ -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.