Skip to content

Commit

Permalink
[ci] prometheus config 수정
Browse files Browse the repository at this point in the history
prometheus config 수정
  • Loading branch information
YeaChan05 committed Jul 2, 2024
1 parent 26a45ed commit 9df070d
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ services:
- /home/ec2-user/application-prod.yml:/config/application-prod.yml
environment:
- TZ=Asia/Seoul
- spring.application.name=app1
- spring.application.name=app3

redis:
container_name: redis
Expand All @@ -82,20 +82,18 @@ services:
- prometheus-data:/prometheus
ports:
- "9090:9090"
networks:
- monitoring
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- --storage.tsdb.retention.time=14d
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=168h'

grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- "3009:3000"
networks:
- monitoring
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
volumes:
Expand All @@ -109,12 +107,29 @@ services:
- "--config.my-cnf=/etc/mysql/my.cnf"
ports:
- "9104:9104"
networks:
- monitoring
volumes:
- /home/ec2-user/my.cnf:/etc/mysql/my.cnf

# loki:
# image: grafana/loki:latest
# container_name: loki
# restart: always
# ports:
# - "3100:3100"
# volumes:
# - ./loki-config.yml:/etc/loki/local-config.yaml
#
# promtail:
# image: grafana/promtail:latest
# container_name: promtail
# restart: always
# volumes:
# - /var/log:/var/log
# - ./promtail-config.yml:/etc/promtail/config.yml
# command: -config.file=/etc/promtail/config.yml
# environment:
# - HOSTNAME=promtail
volumes:
grafana-storage:
prometheus-data:
redis-data:
redis-data:

0 comments on commit 9df070d

Please sign in to comment.