Skip to content

Commit

Permalink
feat(hu6r1s): docker-compose 파일 생성 (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
hu6r1s authored May 15, 2024
1 parent fe1dab0 commit 1e7b26b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contest/docker-compose/hu6r1s/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## APM 시스템 구축

---
- 이전에 만들어놨던 서버에 대한 매트릭을 받아 서버 성능을 모니터링 할 수 있는 시스템을 도커로 실행
- Spring Actuator를 통해서 매트릭을 Prometheus로 가져가서 DataSource 형식으로 보관하고 있으면 Grafana를 통해 프로메테우스가 가진 매트릭 정보를 시각화 시켜줍니다.
21 changes: 21 additions & 0 deletions contest/docker-compose/hu6r1s/docker-compose.yml
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
6 changes: 6 additions & 0 deletions contest/docker-compose/hu6r1s/prometheus.yml
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']

0 comments on commit 1e7b26b

Please sign in to comment.