Skip to content

Instantly share code, notes, and snippets.

View MichaelDrogalis's full-sized avatar

Michael Drogalis MichaelDrogalis

  • Confluent
  • Seattle, WA
View GitHub Profile
{
"_gen": "weightedOneOf",
"choices": [
{
"weight": 98,
"choice": {
"_gen": "add",
"args": [
{ "_gen": "var", "var": "pickup" },
{
{
"generators": [
{
"topic": "customers",
"value": {
"customerId": { "_gen": "uuid" },
"name": { "_gen": "string", "expr": "#{Name.full_name}" },
"address": { "_gen": "string", "expr": "#{Address.full_address}" },
"membership": {
"_gen": "oneOf",

Run it yourself

  1. Get ShadowTraffic
  2. Make a file called flights.json (see below)
  3. Run it with docker run --env-file license.env -v ./flights.json:/home/config.json shadowtraffic/shadowtraffic:latest --config /home/config.json --sample 100000 --quiet --no-pretty --stdout > data.json

To visualize the output:

  1. Download Visidata
  2. Make a file called vgraph.vdj (see below)
{
"generators": [
{
"topic": "flights",
"fork": {
"key": {
"_gen": "sequentialString",
"expr": "flight-~d"
},
"stagger": {"ms": 5000},
{
"generators": [
{
"topic": "funnelEvents",
"fork": {
"key": {
"_gen": "string",
"expr": "#{Name.username}"
},
"stagger": { "ms": 200 }

Run it yourself

  1. Get ShadowTraffic
  2. Make a file called heap-readings.json (see below)
  3. Run it with docker run --env-file license.env -v ./heap-readings.json:/home/config.json shadowtraffic/shadowtraffic:latest --config /home/config.json --sample 15000 --quiet --no-pretty --stdout > data.json

To visualize the output:

  1. Download Visidata
  2. Make a file called vgraph.vdj (see below)
{
"generators": [
{
"table": "sensors",
"vars": {
"id": {
"_gen": "oneOf",
"choices": ["sensor-1", "sensor-2", "sensor-3", "sensor-4", "sensor-5"]
}
},
{
"generators": [
{
"topic": "pushEvents",
"value": {
"commits": {
"_gen": "repeatedly",
"n": { "_gen": "uniformDistribution", "bounds": [1, 10] },
"target": {
"id": {"_gen": "gitSha"},
{
"generators": [
{
"topic": "passwordResetFlow",
"vars": {
"username": {
"_gen": "oneOf",
"choices": [
{ "_gen" : "string", "expr" : "#{Name.username}" },
{
{
"generators": [
{
"topic": "funnelEvents",
"vars": {
"id": {
"_gen": "string",
"expr": "#{Name.username}"
}
},