cmd/telegraf: -configdirectory only includes files ending in .conf

Closes #392
This commit is contained in:
Tero Marttila
2015-11-25 19:05:51 -07:00
committed by Cameron Sparr
parent d47740bd8d
commit 13ccf420d7
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -32,11 +32,12 @@ func NewProcstat() *Procstat {
var sampleConfig = `
[[procstat.specifications]]
prefix = "" # optional string to prefix measurements
# Use one of pid_file or exe to find process
# Must specify one of: pid_file, exe, or pattern
# PID file to monitor process
pid_file = "/var/run/nginx.pid"
# executable name (used by pgrep)
# executable name (ie, pgrep <exe>)
# exe = "nginx"
# pattern as argument for pgrep -f
# pattern as argument for pgrep (ie, pgrep -f <pattern>)
# pattern = "nginx"
`