PaaS/모니터링·로깅

DataDog 오류 : unable to reliably determine the host name

armyost 2023. 11. 13. 22:52
728x90

2023-11-13 13:19:05 UTC | CORE | ERROR | (comp/dogstatsd/server/server.go:225 in newServerCompat) | Dogstatsd: unable to determine default hostname: unable to reliably determine the host name. You can define one in the agent config file or in your hosts file
2023-11-13 13:19:05 UTC | CORE | INFO | (comp/forwarder/defaultforwarder/default_forwarder.go:242 in NewDefaultForwarder) | Retry queue storage on disk is disabled
2023-11-13 13:19:06 UTC | CORE | ERROR | (cmd/agent/subcommands/run/command.go:295 in func3) | Error while getting hostname, exiting: unable to reliably determine the host name. You can define one in the agent config file or in your hosts file
Error: Error while getting hostname, exiting: unable to reliably determine the host name. You can define one in the agent config file or in your hosts file

 

위와 같이 오류가 발생하였다. 구글링을 한 결과 7.4 최신버전의 버그다.

 

그래서 datadog-agent 배포할때 사용하는 values.yaml에서 

# clusterAgent.image.tag -- Cluster Agent image tag to use
  tag: 7.49.0 → 7.39.2 ##버전을 내리자###

  ...

  # agents.image.tag -- Define the Agent version to use
  tag: 7.49.0 → 7.39.2 ##버전을 내리자###

  ...

  # clusterChecksRunner.image.tag -- Define the Agent version to use
  tag: 7.49.0 → 7.39.2 ##버전을 내리자###

 

위와 같이 버전을 downgrade 시켜야 한다.