fix monitoring parameter.
Add integration test for monitoring API.