From 6794fd06eb880fc26ac0b9e1bdbd83238c667759 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 3 Nov 2015 11:18:57 -0700 Subject: [PATCH] Suggest running as telegraf user in test mode in README Fixes #330 --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aacf7a9ae..4b6bd636f 100644 --- a/README.md +++ b/README.md @@ -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. * 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. -* 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 -filter system:swap`. to run telegraf with only the system & swap plugins defined in the config.