fixed dedup on agent metrics