[checkmk-commits] metrics: split up new helper function needed in custom graphs