From 94aff9fe732211149d802a8130405dd3a63af23b Mon Sep 17 00:00:00 2001 From: Dennis Gaida <2392217+DennisGaida@users.noreply.github.com> Date: Wed, 15 Feb 2023 16:40:22 +0100 Subject: [PATCH] Added quote information for absolute paths This had me running in circles because `ioutil.ReadFile` did not read the local file for me when running as a service (i.e. `config.yml` in the same folder as the `windows_exporter.exe`). I had to use absolute paths and additionally quote them. Signed-off-by: Dennis Gaida <2392217+DennisGaida@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7869e2f2..ac606dee 100644 --- a/README.md +++ b/README.md @@ -164,7 +164,7 @@ This enables the additional process and container collectors on top of the defau ### Using a configuration file -YAML configuration files can be specified with the `--config.file` flag. E.G. `.\windows_exporter.exe --config.file=config.yml` +YAML configuration files can be specified with the `--config.file` flag. e.g. `.\windows_exporter.exe --config.file=config.yml`. If you are using the absolute path, make sure to quote the path, e.g. `.\windows_exporter.exe --config.file="C:\Program Files\windows_exporter\config.yml"` ```yaml collectors: