Make measurements sampling reusable

Having the measurements sampling based on a JSON definition reusable is handy :-).