Skip to content

EJaro00/CapSP3-JaegerGrafana-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capstone-Project3

Anti-pattern detection in Jaeger/Grafana tracking tool for microservices: Jaeger/Grafana Plugin

For our group, we picked the Train-Ticket Microservice OSS Project.

Team

Team Leader: Eric Jaroszewski

Team Members: Evan Berryman,Yangzekun Gao,Zhengyan Hu,Maiqi Hou


Log Trace File

Make sure you have deployed Train-ticket and Jaeger before you run this executable file

Our group provides a Jaeger Tracing.exe to help users to trace each microservices and comprehensive a completed local file.

If the executable file has some problem, please open the Python Program(in the logfile) and run app.py

Once you open the executable file, it allows users to enter an IP address and a port, which is the IP and port of your developed Jaeger. We also offer two options for tracing mode: 5m-traceing recently 5 minutes data and ALL-tracing data within 2 days.

exefile

After you enter the above information, you should access http://localhost:5000 in your browser. If it shows a "Hello, World" page, this means that Jaeger Tracing.exe has run successfully and it can trace microservices data now.

exefile1

Now you can access using http://localhost:5000/logging and it is your tracing file. All of our Grafana data sources get their data from this URL.

exefile2


Grafana panel

Make sure you have run Jaeger Tracing.exe or run app.py in the logfile folder first

  • Prerequisites
    1. Grafana: higher than 7.0.0 (For my Grafana version is 9.3.6)
    2. NodeJS: >= 14 (16 Recommanded for Ubuntu 22.04 LTS)
    3. yarn
  • If you NodeJS version lower than 14, you many follow next command:
    1. Remove nodejs that you have already installed
    sudo apt-get remove nodejs
    1. add Node.js v16.x repositories:
    curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
    1. Re-install node.js
    sudo apt-get install nodejs

Once you have done above steps, you need you to locate the Grafana.ini file. The default path on ubuntu: /etc/grafana/Grafana.ini In the Grafana.ini file make sure following variable has been modified 1. Find plugins paths setting: [paths] plugins = /var/lib/grafana/plugins 2. Find plugin_loading_unsigned_plugins allow_loading_unsigned_plugins = train-ticket-plugin 3. Setting app mode to development app_mode = development

That is All steps, now you can restart the Grafana server and check your plugin.setting->configuration->Plugins

sudo systemctl restart grafana-server

Download the train-ticket-plugin folder, using VS code open it, and call the terminal to run these commands.

  1. Install dependencies

    yarn install
  2. Build plugin in development mode or run in watch mode

    yarn watch

Go to the Grafana platform, selecting our plugin. Here we go, join our plugin.


Renderings:

When there is no dynamic data capture

0data

0data-graph

When there is a small amount of data captured

smalldata

samlldata-graph

When a large amount of data is captured

amountdata

amoutdata-graph2d

amountdata-graph3d

We provide two video demo DEMO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •