A monitoring system for an analyte in a bodily fluid of a patient comprises a housing, a sensor disposed within the housing, and a cannula. The sensor detects and reports the detection of an analyte. The sensor includes a sensor inlet and a sensor outlet. The cannula includes a cannula inlet and a cannula outlet, where the cannula inlet is fluidly coupled to the sensor inlet and the cannula outlet is fluidly coupled to the sensor outlet. The monitoring system can provide real-time monitoring of an intravenous analyte, where a fluid delivery unit can automatically administer a fluid in response to detection of a predetermined amount of the analyte.