Skip to content

Commit

Permalink
feat/JNU-econovation#206 : prometheus 관련 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hwangdaesun committed May 4, 2024
1 parent 6a63e0e commit a66cef0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion BE/exceed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'

// Prometheus
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
implementation 'io.micrometer:micrometer-registry-prometheus'
}

tasks.named('bootBuildImage') {
Expand Down
2 changes: 1 addition & 1 deletion BE/exceed/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
- grafana-data:/var/lib/grafana
- ./resources/gaebaljip-develop-environment/grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SERVER_ROOT_URL=https://eatceed.net:3000
- GF_SERVER_ROOT_URL=3.37.117.77:3000
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
depends_on:
- prometheus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
global:
scrape_interval: 15s
evaluation_interval: 15s

alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
rule_files:
scrape_configs:

- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
#추가
- job_name: "spring-actuator"
metrics_path: '/actuator/prometheus'
scrape_interval: 1s
static_configs:
- targets: ['host.docker.internal:8081']
- targets: ['3.37.117.77:8080']
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ scrape_configs:
metrics_path: '/actuator/prometheus'
scrape_interval: 1s
static_configs:
- targets: ['host.docker.internal:8081']
- targets: ['host.docker.internal:8080']
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ services:
grafana:
image: grafana/grafana:latest
container_name: grafana
user: "$UID:$GID"
restart: always
ports:
- "3000:3000"
Expand Down
5 changes: 0 additions & 5 deletions BE/exceed/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ springdoc:
ableAutoComplete: true

management:
server:
port: 8081
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
Expand Down
5 changes: 0 additions & 5 deletions BE/exceed/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ ableAutoComplete: true
# Actuator

management:
server:
port: 8081
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
Expand Down

0 comments on commit a66cef0

Please sign in to comment.