Skip to main content

Sensor Lifecycle Management



Installed on Kubernetes

Uninstall Sensor

helm uninstall levoai-sensor -n levoai

Get Sensor Logs

kubectl get pods -n levoai

kubectl logs -n levoai <pod name>

Upgrade Sensor

  • Uninstall Sensor
  • Reinstall Sensor

Manage Sensor Configuration

Please refer to Sensor Configuration, and Applying Configuration Changes.



Installed via Docker

Uninstall Sensor

# Get the container id of the Sensor
docker ps | grep "levoai/ebpf_sensor"

# Remove the Sensor
docker rm -f <container id from docker ps step above>

Get Sensor Logs

# Get the container id of the Sensor
docker ps | grep "levoai/ebpf_sensor"

sudo docker logs <container id from docker ps step above>

Upgrade Sensor

  • Uninstall Sensor
  • Pull new Sensor image
docker pull levoai/ebpf_sensor:latest
  • Reinstall Sensor

Manage Sensor Configuration

Please refer to Sensor Configuration, and Applying Configuration Changes.



Installed on Linux Host

Configure Satellite Address (host:port information)

The Satellite address is configured in /etc/levo/sensor/config.yaml. The default host:port for Satellite is localhost:4317.

Edit /etc/levo/sensor/config.yaml, and set collector-endpoint (under Satellite Settings) to the desired host:port value.

...
# --------------------------------------------------------------------------------------------
# Satellite Settings:
# --------------------------------------------------------------------------------------------
# host:port for the collector service receiving the sensor's API traces.
collector-endpoint: <set to desired host:port value>
# --------------------------------------------------------------------------------------------
...

A Sensor restart is required for this to take effect.

Start Sensor

# Note: The default config file is located at: '/etc/levo/sensor/config.yaml'
sudo systemctl start levo-ebpf-sensor

Get Sensor Status

sudo systemctl status levo-ebpf-sensor

Stop Sensor

sudo systemctl stop levo-ebpf-sensor

Check Sensor Logs

journalctl -u levo-ebpf-sensor.service -b -f --since "15min ago"

# If journalctl isn't providing logs, you can alternatively:
sudo cat syslog | grep 'levo-ebpf-sensor'

Show Sensor Config

cat /etc/levo/sensor/config.yaml

Uninstall Sensor

sudo apt remove --purge levo-ebpf-sensor
sudo apt clean

Manage Sensor Configuration

Please refer to Sensor Configuration, and Applying Configuration Changes.