Skip to content

Commit f8294c1

Browse files
Copilotrdementi
andcommitted
Update documentation with --listen option usage examples
Co-authored-by: rdementi <25432609+rdementi@users.noreply.github.com>
1 parent 2090e4a commit f8294c1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/PCM-EXPORTER.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Usage: ./pcm-sensor-server [OPTION]
2020
Valid Options:
2121
-d : Run in the background (Linux/macOS only)
2222
-p portnumber : Run on port <portnumber> (default port is 9738)
23+
-l|--listen address : Listen on IP address <address> (default: all interfaces)
2324
-r|--reset : Reset programming of the performance counters.
2425
-D|--debug level : level = 0: no debug info, > 0 increase verbosity.
2526
-R|--real-time : If possible the daemon will run with real time
@@ -28,6 +29,19 @@ Valid Options:
2829
-h|--help : This information
2930
```
3031

32+
The `-l`/`--listen` option allows you to specify which IP address the server should bind to. This is useful in multi-homed servers, containerized deployments, or restricted monitoring networks:
33+
34+
```bash
35+
# Bind to localhost only (accessible only from the local machine)
36+
sudo ./pcm-sensor-server -l 127.0.0.1 -p 9738
37+
38+
# Bind to a specific management network interface
39+
sudo ./pcm-sensor-server -l 192.168.1.10
40+
41+
# Bind to all interfaces (default behavior)
42+
sudo ./pcm-sensor-server
43+
```
44+
3145
## Windows Support
3246

3347
pcm-sensor-server now runs natively on Windows. Key points:

0 commit comments

Comments
 (0)