I am currently taking a course in mathematical analysis and we are using Principles of Mathematical Analysis by Walter Rudin.I am looking for other analysis texts, similar in content to Rudin and with good exercises for practice with the concepts.

I also own, Real Analysis and Foundations by Steven Krantz, however as you can tell by the title this is limited to the reals, rather than general metric spaces. Any recommendations?

Thanks in advance (and sorry if this is in the wrong section)