added metric for pubsub