Fix custom metrics fetching