From d860d92dc87f5a69efb96ad3b2e67dd0979c62a3 Mon Sep 17 00:00:00 2001 From: Charles Morin <1950396+charlesmorin@users.noreply.github.com> Date: Wed, 4 Sep 2019 08:44:26 -0400 Subject: [PATCH] Added a required detail for the .prom file to work properly After adding the `role.prom` file on Windows on around 15 virtual machines, we discovered that if omit to insert an empty line feed at the end of the file, Prometheus won't get metrics from the virtual machine. Adding a new line fixes the issue and immediately start gathering metrics for the virtual machine. --- docs/collector.textfile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/collector.textfile.md b/docs/collector.textfile.md index 7c6aef69..6fa42c14 100644 --- a/docs/collector.textfile.md +++ b/docs/collector.textfile.md @@ -12,7 +12,7 @@ Enabled by default? | Yes ### `--collector.textfile.directory` -The directory containing the files to be ingested. Only files with the extension `.prom` are read. +The directory containing the files to be ingested. Only files with the extension `.prom` are read. The `.prom` file must end with an empty line feed to work properly. Default value: `C:\Program Files\wmi_exporter\textfile_inputs`