Story
Urine is a filtrate of blood, so small molecules you eat can show up in it. Beets turn it red and asparagus gives a sulfur smell; foam only suggests a test, and judging protein takes a urine test.
regulates (3)
Anything from food that has been absorbed into the blood can turn up in urine, unchanged or altered. That is because urine is plasma filtered in the glomeruli. Whether a pigment reaches urine is decided in the gut, not the kidney.
Riboflavin the body cannot use right away is filtered by the kidneys into urine, turning it bright yellow; that shows it was absorbed into the blood and cleared normally, not that it went unabsorbed.
When bile cannot drain, urine can turn dark and stools pale, sometimes with fever, itching or abdominal pain; dark urine together with pale stools needs prompt medical care.