Go to file
Alberto Soutullo Rendo 3fda6aec27 Initial commit 2023-07-30 14:28:56 +02:00
src Initial commit 2023-07-30 14:28:56 +02:00
tests Initial commit 2023-07-30 14:28:56 +02:00
Dockerfile Initial commit 2023-07-30 14:28:56 +02:00
README.md Initial commit 2023-07-30 14:28:56 +02:00
build.sh Initial commit 2023-07-30 14:28:56 +02:00
previous_run.sh Initial commit 2023-07-30 14:28:56 +02:00
requirements.txt Initial commit 2023-07-30 14:28:56 +02:00

README.md

Mount:

1 - Logs folder (/simulation_data)

Run:

  • docker run --network "host" -v $(pwd)/wakurtosis_logs:/simulation_data/ --add-host=host.docker.internal:host-gateway <image> <script> -p <prometheus_port> -i <infra_type>

Example:

  • docker run --network "host" -v $(pwd)/wakurtosis_logs:/simulation_data/ --add-host=host.docker.internal:host-gateway analysis ./src/main.py -i container-proc
  • docker run --network "host" -v $(pwd)/wakurtosis_logs:/simulation_data/ --add-host=host.docker.internal:host-gateway analysis ./src/main.py -i cadvisor -p 123456

To run tests:

  • docker run --network "host" -v $(pwd)/wakurtosis_logs:/simulation_data/ --add-host=host.docker.internal:host-gateway <image> -m unittest discover -s tests -p "*.py"

Plotting configuration

The configuration is set in config.json, inside "plotting" keyword.

The name of the metric should be the same metric that lives inside Prometheus. This is, any cAdvisor and Waku exposed metric.

{
  "plotting": {
    "by_node": [
      "container_cpu_load_average_10s",
      "container_memory_usage_bytes",
      "container_network_receive_bytes_total",
      "container_network_transmit_bytes_total",
      "container_fs_reads_bytes_total",
      "container_fs_writes_bytes_total"
    ]
  }
}

by_node: This means that the metric will be gathered for each node, getting the distribution of the maximum values in the entire simulation.

by simulation: This means that we will get an accumulated value across the entire simulation. deprecated