Add a quiet mode to telegraf

closes #514
This commit is contained in:
Cameron Sparr
2016-01-15 12:25:56 -07:00
parent 50334e6bac
commit f60c090e4c
4 changed files with 35 additions and 13 deletions

View File

@@ -76,8 +76,11 @@ type AgentConfig struct {
UTC bool `toml:"utc"`
Precision string
// Option for running in debug mode
Debug bool
// Debug is the option for running in debug mode
Debug bool
// Quiet is the option for running in quiet mode
Quiet bool
Hostname string
}
@@ -279,6 +282,8 @@ var header = `# Telegraf configuration
# Run telegraf in debug mode
debug = false
# Run telegraf in quiet mode
quiet = false
# Override default hostname, if empty use os.Hostname()
hostname = ""