What can cosmology tell us about gravity? Constraining Horndeski gravity with Σ and μ