프로메테우스의 config 파일 prometheus.yml에서 targets: [ host.docker.internal:8080 ] 또는 targets: [ localhost:8080 ]으로 설정했을 시 아래와 같은 에러 발생.
prometheus.yml
targets: [ host.docker.internal:8080 ]
targets: [ localhost:8080 ]
localhost 단어를 인식하지 못해서 발생하는 상황 같습니다. 로컬의 IP 주소를 직접 적어주니 해결되었습니다. (targets: [ '172.16.0.202:8080' ])
localhost
IP
targets: [ '172.16.0.202:8080' ]