pubsub monitor and stats