[Prometheus] Get "http://host.docker.internal:8080/metrics": dial tcp: lookup host.docker.internal on 172.0.0.11:53: no such host

HYEOB KIM·2022년 4월 13일
0

Trouble Shooting

목록 보기
5/7

에러 메세지

프로메테우스의 config 파일 prometheus.yml에서
targets: [ host.docker.internal:8080 ] 또는 targets: [ localhost:8080 ]으로 설정했을 시 아래와 같은 에러 발생.
image
image

해결 방법

localhost 단어를 인식하지 못해서 발생하는 상황 같습니다.
로컬의 IP 주소를 직접 적어주니 해결되었습니다.
(targets: [ '172.16.0.202:8080' ])
image

profile
Devops Engineer

0개의 댓글