Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 1.38 KB

RUN_INSTRUCTIONS.md

File metadata and controls

30 lines (26 loc) · 1.38 KB

To run this project a few things are necessary.

Installation

  1. Install a DPDK version (only tested on DPDK 19.05, x86 version)(https://core.dpdk.org/download/) Guide: (https://doc.dpdk.org/guides/linux_gsg/build_dpdk.html)
  2. install Go (https://golang.org/dl/)
  3. Download Promtheus (https://prometheus.io/download/)
  4. Download the Prometheus Node Exporter (https://prometheus.io/download/#node_exporter)
  5. go to go/key_manager and call build.sh
  6. go to src/ and call sh buildall.sh

Prometheus Set-up

  1. Define prometheus to scrape data from the node exporter (HTTP 9100) and our metrics exporter (HTTP 8080)
  2. Alternatively copy the prometheus.yml file from the prometheus_config folder into the Prometheus installation dir

DPDK Set-up (https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html)

  1. Load uio driver: sudo modprobe uio
  2. Load igb_driver: sudo modprobe uio_igb
  3. If this doesn't work load driver manually Go to the dpdk installation directoy (e.g. dpdk-19.05/x86_64-native-linuxapp-gcc/) and call sudo insmod kmod/igb_uio.ko
  4. call ./usertools/dpdk-devbind.py --status to check the driver status
  5. call ./usertools/dpdk-devbind.py --bind=uio_igb [ETH_NAME] to load a desired eth device

Run start prometheus instance start node_exporter run metrics exporter: go run metric_exporter.go configure LighningFilter under src/configure start Lighning filter by running sudo sh run.sh