NXP-11995: Direct use of metrics api instead of a Nuxeo service