NXP-11995: Direct use of metrics api instead of a Nuxeo service, it is simplier and prevent dependencies or init headache