Adding an e2e test for monitoring.

Fixes #2418