add metric hooks to nio channels