use unit tag and charm.url types as input to addmetric. Confirm the unit exists before accepting metrics