def process(self, metric):
        """
          Process a metric and send it to zmq pub socket
        """
        if not zmq:
            return
        # Send the data as ......
        self.socket.send("%s" % str(metric))

          Process a metric and send it to zmq pub socket
        
src/diamond/handler/zmq_pubsub.py