add metric_hash function and update daq