adapt metrics-web to metrics-lib 2.0.0/1.9.0 changes
See
this branch
.