Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 32 additions & 1 deletion prothsync/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,41 @@ services:
volumes:
- prothSync_redis_data:/data

prometheus:
image: 'prom/prometheus:latest'
container_name: prometheus-prothSync
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prothSync_prometheus_data:/prometheus
ports:
- "9090:9090"
networks:
- db-net
extra_hosts:
- "host.docker.internal:host-gateway"

grafana:
image: 'grafana/grafana:latest'
container_name: grafana-prothSync
environment:
GF_SECURITY_ADMIN_USER: ${GRAFANA_ADMIN_USER:-admin}
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:-admin}
TZ: ${TZ}
volumes:
- prothSync_grafana_data:/var/lib/grafana
ports:
- "3000:3000"
networks:
- db-net
depends_on:
- prometheus

networks:
db-net:
name: db-net

volumes:
prothSync_postgres_data:
prothSync_redis_data:
prothSync_redis_data:
prothSync_prometheus_data:
prothSync_grafana_data:
4 changes: 1 addition & 3 deletions prothsync/monitoring/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ scrape_configs:
- job_name: 'prothsync'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['host.docker.internal:8080']
labels:

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분이 micrometer가 이미 application = prothsync 태그를 부여하므로, Prometheus에서 중복 부여 시 exported_application 충돌 발생해서 삭제하였습니다.

application: 'prothsync'
- targets: ['host.docker.internal:8080']
Loading