add api for instance num monitor