File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,17 @@ services:
3333 - " 9090:9090"
3434 volumes :
3535 - ./prometheus.yml:/etc/prometheus/prometheus.yml
36+ networks :
37+ - msa-network
38+
39+ grafana :
40+ image : grafana/grafana:latest
41+ ports :
42+ - " 3000:3000"
43+ volumes :
44+ - grafana-data:/var/lib/grafana
45+ networks :
46+ - msa-network
3647
3748 config :
3849 build :
Original file line number Diff line number Diff line change @@ -6,16 +6,16 @@ scrape_configs:
66 metrics_path : ' /services/account/actuator/prometheus' # account-service의 Prometheus 메트릭 엔드포인트
77 static_configs :
88 - targets :
9- - ' docker.for.mac.localhost:8000 ' # account-service가 실행 중인 주소와 포트
9+ - ['gateway:8080'] # account-service가 실행 중인 주소와 포트
1010
1111 - job_name : ' statistics-service' # 수집 대상을 구분하는 잡 이름
1212 metrics_path : ' /services/statistics/actuator/prometheus' # statistics-service의 Prometheus 메트릭 엔드포인트
1313 static_configs :
1414 - targets :
15- - ' docker.for.mac.localhost:8000 ' # statistics-service가 실행 중인 주소와 포트
15+ - ['gateway:8080'] # statistics-service가 실행 중인 주소와 포트
1616
1717 - job_name : ' notification-service' # 수집 대상을 구분하는 잡 이름
18- metrics_path : ' /services/notification/actuator/prometheus' # statistics -service의 Prometheus 메트릭 엔드포인트
18+ metrics_path : ' /services/notification/actuator/prometheus' # notification -service의 Prometheus 메트릭 엔드포인트
1919 static_configs :
2020 - targets :
21- - ' docker.for.mac.localhost:8000 ' # statistics -service가 실행 중인 주소와 포트
21+ - ['gateway:8080'] # notification -service가 실행 중인 주소와 포트
You can’t perform that action at this time.
0 commit comments