Add a callback-function which is executed in the metric-server