learn
Studio
ShadowTraffic Studio is a light-weight, visual inspection tool to help you generate data exactly how you want.
How it works
Launch it
ShadowTraffic Studio is bundled with the container and requires no additional dependencies. Follow these steps to launch it:
- Start the container with the
--with-studio
flag. - When you specify this flag, it'll start a web server inside the container on port
8080
. - Forward that port your host with Docker's
-p
command. - Open up
http://localhost:<your forwarded port>
in your browser.
Your Docker command should look something like this:
docker run --env-file license.env \
-p 9876:8080 \
-v $(pwd)/your-config.json:/home/config.json \
shadowtraffic/shadowtraffic:latest \
--config /home/config.json \
--with-studio \
--watch \
--sample 10
Open your browser on your host (http://localhost:9876
in this example), and if everything worked you should be greeted with a screen that that looks like this:
Now, go ahead and edit your configuration file. Each time you save it, ShadowTraffic will draw out a visual timeline of your generated data.
Inspect order
Each generator will be displayed as a timeline moving left to right. Click on the tiles in the timeline to see the contents of the event.
Inspect relationships
If you use the lookup
function, hit the show origins
toggle on the right of the footer. You can see which specific events a lookup
keyed off of.
Inspect forks
If you use fork
on a generator, each fork key will get its own track in the timeline. This makes it easy to distinguish the activity of individual forks.
Inspect configuration
Click on the gear next to each generator to get a read-only view of its localConfigs
in the footer.