'Send data to Graphite.'

def _send_to_graphite(self, data):

    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.settimeout(10)
    sock.connect((self._host, self._port))
    sock.sendall(data.encode('ascii'))
    sock.send('\n'.encode('ascii'))
    sock.close()
