From 63a902774e391a1d45214d5c45614125a16932e6 Mon Sep 17 00:00:00 2001 From: forest Date: Wed, 13 May 2020 14:19:10 -0500 Subject: [PATCH] more metrics tweaks --- capsulflask/metrics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/capsulflask/metrics.py b/capsulflask/metrics.py index 9b6d99f..3a34a64 100644 --- a/capsulflask/metrics.py +++ b/capsulflask/metrics.py @@ -97,7 +97,7 @@ def get_plot_bytes(metric, capsulid, duration, size): memory=vm["memory_mb"]*1024*1024, network_in=1024*1024*2, network_out=1024*200, - disk=1024*1024*4, + disk=1024*1024*8, ) if metric not in metric_queries: @@ -212,6 +212,9 @@ def draw_plot_png_bytes(data, scale, size_x=3, size_y=1): image_binary = BytesIO() fig.savefig(image_binary, transparent=True, bbox_inches="tight", pad_inches=0.05) + + pyplot.close('all') + return image_binary.getvalue()