GithubHelp home page GithubHelp logo

op-poc's Introduction

OPENCONFIG POC

OBJECTIVE

Assess open config's viability for a-cord

Get STARGED

Install Dependencies

Install dependencies: grpc, potsdb

pip install -r requirements.txt

Start Probe Server

python probe.py --port 80049 --time 0.01

probe server will run in port 80049, probe will generate updates in every 0.01 second when a subscription request received.

Use -h to check the argument options

Start Collector Server

python collector.py --port 80050 --device_port 80049 --sample 1 

collector server will run in port 80050, it will subscribe to port 80049 which is the probe server. How many updates will be aggregated is specifyed by sample argument. You can run mutiple collectors or create a collecotr chain by configuring the port and device port.

Use -h to check the argument options

Start Test_client

python test_client.py --subscribe "interfaces/ethnet/state" --port 80050

test_client will subscribe to port 80050 which is the collector server, and send request for updates of path: "interfaces/ethnet/state"

Use -h to check the argument options

OPENTSDB

The address and port of OPENSTDB is defined in test_client.py. The default is localhost:4242. You can change it in test_client.py. Metric name will be the path name you subscribed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.