Update monitoring.py

add re pattern