Skip to content

staticBunny/GTrace

 
 

Repository files navigation

GTrace

Code and dataset for (ESEC/FSE' 23) From Point-wise to Group-wise: A Fast and Accurate Microservice Trace Anomaly Detection Approach.

Evaluation of Accuracy

We provide dataset B for evaluation.

  • Download dataset_b.zip and put it under dataset/ after unzipping it.
  • Install Python 3.8+ on your system.
  • Run pip3 install -r requirements.txt to install the dependencies.
  • Run python3 -m tracegnn.models.gtrace.main to start training. The evaluation will automatically starts after training.
  • If you want to run on GPU, you can modify the device in tracegnn/models/config.py.

(To enable accuracy evaluation, the model runs the inference once for each trace and thus cannot be used for time efficiency evaluation. If you need to perform evaluation of time efficiency, please refer to the following section.)

Evaluation of Time Efficiency

We provide the code for the Anomaly Detection module and Graph Building module.

To evaluate the time efficiency, we provide a minimal example and a trained model that can be run directly on your local device without deployment:

Visualization Tool

  • Run python3 -m tracegnn.visualization.webviewer_server.
  • Visit http://localhost:12312/0 or http://localhost:12312/1 to see the visualization results for two example cases.

Reference

Notes

  • Dataset A is under review by the company and cannot be disclosed at this time.

About

Source code for GTrace (ESEC/FSE'23 industry track).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%