Skip to content

Commit

Permalink
[ci] targets 변경
Browse files Browse the repository at this point in the history
targets 변경
  • Loading branch information
YeaChan05 committed Jun 17, 2024
1 parent 4927714 commit e624598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ services:
- "9090:9090"
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- server-network

Expand Down
2 changes: 1 addition & 1 deletion prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ scrape_configs:

- job_name: 'spring-boot-apps'
static_configs:
- targets: ['host.docker.internal:8081', 'host.docker.internal:8082', 'host.docker.internal:8083']
- targets: ['app1:8080', 'app2:8080', 'app3:8080']
metrics_path: '/actuator/prometheus'

- job_name: 'mysql'
Expand Down

0 comments on commit e624598

Please sign in to comment.