C++ implementation of ioam-agent-python for Cross-Layer Telemetry.
- Dependencies:
- gRPC library for C++
- protobuf library for C++
- pkg-config
- g++
- Generate Protocol Buffers files and compile:
wget https://raw.githubusercontent.com/Advanced-Observability/ioam-api/clt/ioam_api.proto
protoc -I . --cpp_out=. --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ioam_api.proto
g++ ioam-agent.cpp ioam_api.grpc.pb.cc ioam_api.pb.cc `pkg-config --cflags --libs protobuf grpc++` -o ioam-agent -Wall
./build
- Run:
sudo ./ioam-agent -i <interface> [-o]
Use -o
.
This mode will print IOAM traces in the console.
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