From 94a733219e9d94695b3b8a837151f921677ee807 Mon Sep 17 00:00:00 2001 From: Timothy Date: Thu, 9 Mar 2017 06:21:03 -0500 Subject: [PATCH] Update CONFIGURATION.md (#2516) Add information about default configuration file locations. Also mention that the config directory option is available. --- docs/CONFIGURATION.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md index 9b2eb99d8..ff4814b82 100644 --- a/docs/CONFIGURATION.md +++ b/docs/CONFIGURATION.md @@ -24,6 +24,16 @@ Environment variables can be used anywhere in the config file, simply prepend them with $. For strings the variable must be within quotes (ie, "$STR_VAR"), for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR) +## Configuration file locations + +The location of the configuration file can be set via the `--config` command +line flag. Telegraf will also pick up all files matching the pattern `*.conf` if +the `-config-directory` command line flag is used. + +On most systems, the default locations are `/etc/telegraf/telegraf.conf` for +the main configuration file and `/etc/telegraf/telegraf.d` for the directory of +configuration files. + # Global Tags Global tags can be specified in the `[global_tags]` section of the config file @@ -351,4 +361,4 @@ to the system load metrics due to the `namepass` parameter. [[outputs.file]] files = ["stdout"] -``` \ No newline at end of file +```