check for both admin_api_key and api_key values until ticket #148 is fixed
convert metric values to integers so reference sets work