Update monitoring.py