Resource Monitoring and Optimization with Metaflow