def METHOD_NAME(hoststats):
    prefix = "hosts"
    data = {}
    try:
        for dom in hoststats['storageDomains']:
            storage_prefix = prefix + '.storage.' + dom
            dom_info = hoststats['storageDomains'][dom]
            data[storage_prefix + '.delay'] = dom_info['delay']
            data[storage_prefix + '.last_check'] = dom_info['lastCheck']
        metrics.send(data)
    except KeyError:
        logging.exception('Host metrics collection failed')