Giter Site home page Giter Site logo

opentracing-infrastructure-graph's Introduction

opentracing-infrastructure-graph

Visualizing infrastructure topology via OpenTracing instrumentation.

This application uses the following libraries to extract the topology metrics to Prometheus via OpenTracing:

Requirements

  • Docker

Run Prometheus

Modify: /prometheus-data/prometheus.yml, replace 192.168.0.10 with your own host machine's IP.
Host machine IP address: ifconfig | grep 'inet 192'| awk '{ print $2}'

docker run -p 9090:9090 -v "$(pwd)/prometheus-data":/prometheus-data prom/prometheus -config.file=/prometheus-data/prometheus.yml

Open Prometheus: http://http://localhost:9090

Getting started

It will start three web servers and simulate a service call chain:
server1 calls server2 and server3 parallel.

npm start
curl http://localhost:3001

Metrics between services

parent_service="unknown" label means that the request initiator is not instrumented (Prometheus scraper, curl, etc).

parent_service labels

Throughput

Prometheus query:

sum(rate(operation_duration_seconds_count{name="http_server"}[1m])) by (service, parent_service)  * 60

Throughput between services

95th response time

Prometheus query:

histogram_quantile(0.95, sum(rate(operation_duration_seconds_bucket{name="http_server"}[1m])) by (le, service, parent_service)) * 1000

95th response time between services

Infrastructure topology

Data comes from Prometheus.
Uses vizceral.

npm run start-client
open http://localhost:8080

Infrastructure topology

Future

  • add databases
  • show latency

opentracing-infrastructure-graph's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.