Nocturia is a condition in which the afflicted patient has to get up throughout the night to relieve themselves. That is, one must get up often while sleeping due to the need to use the restroom.
If you think this might be you but you're just not sure, then consider how often your need to urinate is disrupting your sleep. If it's frequent, more than once and regularly throughout the week, then you might consider seeking help. Lack of sleep can affect your work, your relationships, and aid in premature aging among other things. If you think this might be an issue for you, then it is worth is to see a doctor for frequent evening urination.