use index through hint in api metric selection