We classify the metabelian unitary representations of $\pi_1(M_K)$, where $M_K$ is the result of zero-surgery along a knot $K\subset S^3$. We show that certain eta-invariants associated to metabelian representations $\pi_1(M_K)\to U(k)$ vanish for slice knots and that even more eta-invariants vanish for ribbon knots. This sliceness obstruction turns out to be at least as strong as the Casson-Gordon obstruction. It turns out that eta-invariants can in many cases be easily computed for satellite knots. We make use of this to study the relation between the eta-invariant sliceness obstruction, eta-invariant ribboness obstruction and the $L^2$-eta invariant obstruction recently introduced by Cochran, Orr and Teichner. In particular we give an example of a knot which has zero Casson-Gordon invariants, zero eta-invariant sliceness obstruction and zero metabelian $L^2$-eta invariants, but is not ribbon.