From 2ebea42de5d2c805fad4e30fb53cedb77c773afe Mon Sep 17 00:00:00 2001 From: siku4 Date: Mon, 28 Sep 2020 15:37:48 +0200 Subject: [PATCH] Enable the use of remote ip addresses for fw rule Signed-off-by: siku4 --- README.md | 1 + installer/windows_exporter.wxs | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 17e9399f..f24a5a86 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ Name | Description `LISTEN_PORT` | The port to bind to. Defaults to 9182. `METRICS_PATH` | The path at which to serve metrics. Defaults to `/metrics` `TEXTFILE_DIR` | As the `--collector.textfile.directory` flag, provide a directory to read text files with metrics from +`REMOTE_ADDR` | Allows setting comma separated remote IP addresses for the Windows Firewall exception (whitelist). Defaults to an empty string (any remote address). `EXTRA_FLAGS` | Allows passing full CLI flags. Defaults to an empty string. Parameters are sent to the installer via `msiexec`. Example invocations: diff --git a/installer/windows_exporter.wxs b/installer/windows_exporter.wxs index f880baf3..8e9f2ba1 100644 --- a/installer/windows_exporter.wxs +++ b/installer/windows_exporter.wxs @@ -28,6 +28,9 @@ METRICS_PATH + + + REMOTE_ADDR @@ -43,7 +46,9 @@ - + + [REMOTE_ADDR] +