jbiggley / ioam-agent-python

IOAM Agent for Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOAM Agent for Python3

  1. Install dependencies:
sudo pip3 install --upgrade bitstruct grpcio grpcio-tools protobuf

Note: sudo is required since the IOAM agent requires root privileges.

  1. Compile the IOAM API:
git clone https://github.com/Advanced-Observability/ioam-api.git
python3 -m grpc_tools.protoc -Iioam-api/ --python_out=. --grpc_python_out=. ioam-api/ioam_api.proto
  1. Run it:
sudo python3 ioam-agent.py -i <interface> [-o]

Output Mode

Use -o.

This mode will print IOAM traces in the console.

Report Mode

Default mode.

This mode will report IOAM traces to a collector via grpc. The collector must be defined as an environment variable:

IOAM_COLLECTOR=address:port

About

IOAM Agent for Python3

License:GNU General Public License v3.0


Languages

Language:Python 100.0%