Adapt to a new version of metrics in platform-client

@nicolashery Please take a look?