Add custom metric on machine creation or on machine rerun