Aggregate data on shutdown for charts [Finishes #82650798]

please rename this function `get_instance()`