File tree Expand file tree Collapse file tree 8 files changed +24
-7
lines changed Expand file tree Collapse file tree 8 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,5 @@ REDIS_URL=redis://localhost:6379
5050
5151# === PROMETHEUS ===
5252PROMETHEUS_ENABLED = true
53- PROMETHEUS_MODE = http_requests_total
53+ # PROMETHEUS_MODE=http_requests_total
54+ PROMETHEUS_MODE = all
Original file line number Diff line number Diff line change @@ -49,4 +49,5 @@ REDIS_URL=redis://localhost:6379
4949
5050# === PROMETHEUS ===
5151PROMETHEUS_ENABLED = true
52- PROMETHEUS_MODE = http_requests_total
52+ # PROMETHEUS_MODE=http_requests_total
53+ PROMETHEUS_MODE = all
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ services:
3131 image : prom/prometheus
3232 container_name : prometheus
3333 volumes :
34+ - prometheus_data:/prometheus
3435 - ./prometheus.yml:/etc/prometheus/prometheus.yml
3536 ports :
3637 - " 9090:9090"
@@ -51,4 +52,7 @@ services:
5152 image : redislabs/redisinsight:1.14.0
5253 container_name : redisinsight
5354 ports :
54- - " 8001:8001"
55+ - " 8001:8001"
56+
57+ volumes :
58+ prometheus_data :
Original file line number Diff line number Diff line change @@ -53,4 +53,3 @@ REDIS_URL=redis://localhost:6379
5353PROMETHEUS_ENABLED = true
5454# PROMETHEUS_MODE=http_requests_total
5555PROMETHEUS_MODE = all
56-
Original file line number Diff line number Diff line change @@ -50,4 +50,5 @@ REDIS_URL=redis://localhost:6379
5050
5151# === PROMETHEUS ===
5252PROMETHEUS_ENABLED = true
53- PROMETHEUS_MODE = http_requests_total
53+ # PROMETHEUS_MODE=http_requests_total
54+ PROMETHEUS_MODE = all
Original file line number Diff line number Diff line change @@ -36,4 +36,5 @@ REDIS_URL=redis://localhost:6379
3636
3737# === PROMETHEUS ===
3838PROMETHEUS_ENABLED = true
39- PROMETHEUS_MODE = http_requests_total
39+ # PROMETHEUS_MODE=http_requests_total
40+ PROMETHEUS_MODE = all
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ services:
3131 image : prom/prometheus
3232 container_name : prometheus
3333 volumes :
34+ - prometheus_data:/prometheus
3435 - ./prometheus.yml:/etc/prometheus/prometheus.yml
3536 ports :
3637 - " 9090:9090"
@@ -51,4 +52,7 @@ services:
5152 image : redislabs/redisinsight:1.14.0
5253 container_name : redisinsight
5354 ports :
54- - " 8001:8001"
55+ - " 8001:8001"
56+
57+ volumes :
58+ prometheus_data :
Original file line number Diff line number Diff line change @@ -13,3 +13,9 @@ scrape_configs:
1313 static_configs :
1414 - targets :
1515 - host.docker.internal:3002
16+
17+ - job_name : ' backend-springboot'
18+ metrics_path : ' /prometheus'
19+ static_configs :
20+ - targets :
21+ - host.docker.internal:3003
You can’t perform that action at this time.
0 commit comments