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()