Hello I am trying to integrate Home Assistant to Datadog so I can monitor multiple HA instances in Datadog. For testing I have installed a Datadog agent on a M1 Mac (version 7.32.2) in the same network as the HA instance. The Mac agent is working and shows up in the Datadog web front end.
I have now activated datadog in Home Assistant by adding the following line in the configuration.yaml:
datadog:
host: <IP Adress of Mac who runs the datadog agent>
After restart I was supposed to see Home Assistant Events in Datadog but I don’t. I looked at the log file in Home Assistant and found the following error:
2023-07-12 12:43:27.995 ERROR (SyncWorker_19) [datadog.dogstatsd] Failed to send packet with a newly bound socket
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/datadog/dogstatsd/base.py", line 267, in _send_to_server
(self.socket or self.get_socket()).send(packet.encode(self.encoding))
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/datadog/dogstatsd/base.py", line 274, in _send_to_server
self.get_socket().send(packet.encode(self.encoding))
ConnectionRefusedError: [Errno 111] Connection refused