Sensor via Docker
Install via Docker
Prerequisites
- Docker Engine version
18.03.0and above - Admin (or
sudo) privileges on the Docker host
Start the Sensor
sudo docker run --net=host --rm -it levoai/pcap-sensor:0.3.2 ./bin/init apidump --satellite-url "your satellite url (http(s)://hostname|IP:port)" --levo-env "your application environment (staging, production etc.)" --levoai-org-id "your levo org id" --levoai-workspace-id "your workspace id"
Specify additional flags in the command:
--trace-export-interval "trace export interval in seconds (default 10)"
--rate-limit "number of traces per minute"
--filter "pcap filter string, e.g., port 8080 and (not port 8081)"
--host-allow "host allow regex"
--path-allow "path allow regex"
--host-exclusions "host exclude regex"
--path-exclusions "path exclude regex"
Configure Sensor for Memory and CPU Resource Limits
- For normal/average use cases, use the default configuration
- For strict resource constraints, start the Sensor with the options below:
--rate-limit 100
--trace-export-interval 1
--max-http-length 1000000
--stream-timeout-seconds 2