Skip to content

Commit b4a65ce

Browse files
authored
Merge pull request #78 from Goorm-x-Piggy-Project/fix/#77/모니터링-설정-배포-환경으로-변경
[Fix] 모니터링 설정 배포 환경으로 변경
2 parents 0149c94 + 2d0f9ea commit b4a65ce

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

docker-compose-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

prometheus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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가 실행 중인 주소와 포트

0 commit comments

Comments
 (0)