이슈: Get "http://localhost:8080/actuator/prometheus": dial tcp 127.0.0.1:8080: connect: connection refused
원인: 로컬 컴퓨터에서 docker로 올렸기 때문에 프로메테우스가 올라간 서버의 127.0.0.1 이 내 로컬 컴퓨터가 아니어서 난 이슈.
해결: 다음과 같이 프로메테우스 설정 파일을 수정한다
scrape_configs:
- job_name: 'service'
metrics_path: '/actuator/prometheus'
scrape_interval: 10s
static_configs:
- targets: ['host.docker.internal:8080']
https://stackoverflow.com/questions/74823140/prometheus-target-showing-down
Prometheus target showing down
Please note: my prometheus is running using ubuntu terminal and my springboot application is running on windows. Seems like my ubuntu is not able to connect with the localhost of windows. I have c...
stackoverflow.com
Getting error "Get http://localhost:9443/metrics: dial tcp 127.0.0.1:9443: connect: connection refused"
I'm trying to configure Prometheus and Grafana with my Hyperledger fabric v1.4 network to analyze the peer and chaincode mertics. I've mapped peer container's port 9443 to my host machine's port 9443
stackoverflow.com
모니터링 시스템 설정 참고
https://velog.io/@roycewon/Spring-boot-%EB%AA%A8%EB%8B%88%ED%84%B0%EB%A7%81Prometheus-Grafana-docker
Spring boot 모니터링(Prometheus, Grafana, docker)
안녕하세요, 셀럽잇의 로이스입니다.이번 글에서는 셀럽잇 모니터링 시스템 구축기에 대해 소개하겠습니다.우선 서비스 모니터링이 필요한 이유에 대해 간단하게 짚고 넘어가겠습니다.운영상
velog.io
https://www.baeldung.com/spring-boot-prometheus
Monitor a Spring Boot App Using Prometheus | Baeldung
A quick and practical guide to monitoring a Spring Boot application using Prometheus.
www.baeldung.com
'Errors_Tips' 카테고리의 다른 글
python: @lru_cache(None) 데코레이터 (0) | 2021.08.11 |
---|---|
TypeError: 'int' object is not subscriptable 해결 (0) | 2021.07.24 |
[JS Error] ReferenceError: require is not defined (0) | 2021.07.23 |
[Webpack Error] Cannot find module 'webpack-cli/bin/config-yargs' (0) | 2021.07.18 |
[Python Error] ValueError: invalid literal for int() with base 10: ' ' (0) | 2021.07.18 |
댓글