A system for measuring with the aid of light absorption spectrometry the concentration of one or more analytes in porewater in soil, the system comprising: one or more monitoring unit(s), each monitoring unit comprising a porewater sampler (1), an optical flow cell (2) with a tube connecting the liquid inlet port of said optical flow cell to said porewater sampler; and vacuum arrangement to enable extraction of porewater; at least one light source (5) for generating a light beam to be transmitted through said optical flow cell (2); and at least one detector (8) for obtaining spectral information from the beam exiting said optical flow cell. A method of measurement is also provided.