Add option to provide resource based on metric descriptor. (#231) * Add option to provide resource based on metric descriptor. * change option to accomodate removing labels that are used for the resource * fix doc and review comments. * fix review comment.