-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hu6r1s): docker-compose 파일 생성 (#30)
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## APM 시스템 구축 | ||
|
||
--- | ||
- 이전에 만들어놨던 서버에 대한 매트릭을 받아 서버 성능을 모니터링 할 수 있는 시스템을 도커로 실행 | ||
- Spring Actuator를 통해서 매트릭을 Prometheus로 가져가서 DataSource 형식으로 보관하고 있으면 Grafana를 통해 프로메테우스가 가진 매트릭 정보를 시각화 시켜줍니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: '3' | ||
|
||
services: | ||
prometheus: | ||
image: prom/prometheus:latest | ||
container_name: prometheus | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
user: "$UID:$GID" | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- ./grafana-data:/var/lib/grafana | ||
depends_on: | ||
- prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
scrape_configs: | ||
- job_name: 'prometheus' | ||
metrics_path: '/actuator/prometheus' | ||
scrape_interval: 5s | ||
static_configs: | ||
- targets: ['target-ip:target-port'] |