Level tracking using optical or capacitance sensors
What about measuring this with two resistive probes - the electricity will go through down one probe to the top of the water, across the water, and up the other probe. You can measure how much of the probe it went down, by measuring the resistance. You would need the probes to be a specific, very consistent distance apart, and be made of resistance wire.

Another option is to use a float of some kind, and measure it this way. This is a lot easier if all you need to know is full/not full.