<jupyter_start><jupyter_text>Docker Stats Example With Docker stats valuesRun the `scrips/generate_data.sh`, this will produce a data.csv that will be used to create the graphs.You can update it to change the time it runs (by default 30min)Import the local library then pass the file as parameter.<jupyter_code>from src.dockerstats import *

ds = DockerStats("tests/resources/data.csv")
print("The duration time is of \t" + str(ds.duration_min()) + " min")
print("The average cpu is of  \t\t" + str(ds.cpu_avg()) + " %")
print("The average memrory usage is of " + str(ds.memory_avg()) + " %")
ds.mean_for_apps()
ds.plot_category('MEM Usage')<jupyter_output><empty_output><jupyter_text>To plot all the interesting graphs (CPU, Memory, Net IO and Block IO)<jupyter_code>ds.plot_category_all()<jupyter_output><empty_output><jupyter_text>With Jmeter valuesIf you run jmeter, you can use the `.jtl` or any `.csv` report you would like.Note: You can use default `jmeter -g output.csv -o report` to generate a report.<jupyter_code>from src.jmeter import *
jm = Jmeter("tests/resources/output.jtl")
print("The duration time is of \t\t\t" + str(jm.duration_min()) + " min")
print("The average transaction per second is of \t" + str(jm.tps_avg()) + " tps")
print("The average latency is of  \t\t\t" + str(jm.latency_avg()) + " ms")
print("The average response time is of \t\t" + str(jm.response_time_avg()) + " ms")<jupyter_output>The duration time is of 			0.15 min
The average transaction per second is of 	10.9 tps
The average latency is of  			38.569 ms
The average response time is of 		77.211 ms<jupyter_text>Plot all the interesting graph<jupyter_code>jm.plot_latency()
jm.plot_tps()
jm.plot_both()<jupyter_output><empty_output><jupyter_text>Plot depending on the different _responseMessage_.<jupyter_code>jm.plot_success()
jm.plot_label()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12057877813504823, 'fraction_numerical': 0.00964630225080386, 'mean_word_length': 5.482638888888889, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '197928', 'license': 'MIT', 'n_tokens_mistral': 673, 'n_tokens_neox': 636, 'n_words': 195, 'path': 'demo.ipynb', 'repo_name': 'KristobalJunta/docker-stats-graph', 'size': '1866'}