From ff442d1ca2cfb098e2e38be0536de5821dafb59e Mon Sep 17 00:00:00 2001 From: Christian Haudum Date: Tue, 17 May 2022 08:24:29 +0200 Subject: [PATCH] fixup! fixup! fixup! Look for config.yaml file in ./ and ./config directories Signed-off-by: Christian Haudum --- docs/sources/configuration/_index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/sources/configuration/_index.md b/docs/sources/configuration/_index.md index c38b4b153183c..f758ab5d8d51d 100644 --- a/docs/sources/configuration/_index.md +++ b/docs/sources/configuration/_index.md @@ -33,7 +33,11 @@ that the order of configs reads correctly top to bottom when viewed in Grafana's To specify which configuration file to load, pass the `-config.file` flag at the command line. The value can be a list of comma separated paths, then the first -file that exists will be used. The file is written in [YAML +file that exists will be used. +If no `-config.file` argument is specified, Loki will look up the `config.yaml` in the +current working directory and the `config/` sub-directory and try to use that. + +The file is written in [YAML format](https://en.wikipedia.org/wiki/YAML), defined by the scheme below. Brackets indicate that a parameter is optional. For non-list parameters the value is set to the specified default.