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()
Send data to Graphite.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/graphite.py/GraphiteFeeder._send_to_graphite