You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 20, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ MikroTik RouterOS has [built-in support for TZSP packet capture](https://wiki.mi
22
22
# Quick start
23
23
24
24
1. Set up a TZSP packet stream to the server this app will be running on. Pick an arbitrary port number for the stream, for example 1234.
25
-
1. Execute the app as `tzsp_packetstream_exporter --interface eth0 --port 1234` (see `--help` for more info).
25
+
1. Execute the app as `tzsp_packetstream_exporter --interface eth0 --listen-port 1234` (see `--help` for more info).
26
26
1. Navigate to http://hostname:9184/metrics to explore the available metrics.
27
27
1. Register `hostname:9184` in your Prometheus configuration as a scrape target.
28
28
1. If using Grafana, [install the template dashboard](https://grafana.com/grafana/dashboards/11609).
@@ -44,9 +44,7 @@ Only TCP and UDP are analyzed - other transport-level protocols are simply "unkn
44
44
45
45
# How do I analyze multiple parallel packet streams?
46
46
47
-
You could simply direct them at the same analyzer but this will lead to the results being merged.
48
-
49
-
If you want the results separated in Prometheus, run a separate instance of the analyzer, accepting packets and publishing results on individual ports (`--listen-port` and `--publish-port`, respectively).
47
+
You can direct multiple TZSP streams to the same analyzer, either on the same port or separate ports (using multiple `--listen-port` options). The output metrics carry a label indicating the listen port the data arrived on.
50
48
51
49
# (Linux) On startup, I see "Failed to create directory ..." - what's wrong?
privatestaticreadonlyCounterBytesBase=Metrics.CreateCounter("tzsp_observed_bytes_total","Total number of bytes that have been observed in the captured packet stream.",newCounterConfiguration
{"h|?|help","Displays usage instructions.", val =>showHelp=val!=null},
76
78
{"interface=","Name or number of the network interface (e.g. 1 or eth5 or \"Ethernet 3\"). Must match an entry in the 'tshark -D' list.", val =>_logic.ListenInterface=val?.Trim('"')??""},
77
-
{"listen-port|port=","UDP port to listen on for an incoming TZSP packet stream.",(ushortval)=>_logic.ListenPort=val},
79
+
{"listen-port|port=","UDP port to listen on for an incoming TZSP packet stream. Use multiple times to listen on multiple ports.",(ushortval)=>_logic.ListenPorts.Add(val)},
78
80
{"publish-port|publish=",$"TCP port to publish Prometheus metrics on. Defaults to {_logic.PublishPort}.",(ushortval)=>_logic.PublishPort=val},
0 commit comments