Skip to content

Commit 4195525

Browse files
์•ˆํ›ˆ๊ธฐ์•ˆํ›ˆ๊ธฐ
authored andcommitted
๐Ÿ”ง Settings: ๋กœ์ปฌ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ์œ„ํ•œ Prometheus ์„ค์ • ์ถ”๊ฐ€
1 parent 32ea3f9 commit 4195525

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

โ€Ždocker/docker-compose.local.ymlโ€Ž

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,47 @@ services:
3737
interval: 10s
3838
timeout: 3s
3939
retries: 5
40+
redis-exporter:
41+
image: oliver006/redis_exporter:v1.62.0
42+
container_name: sportize-redis-exporter-local
43+
restart: unless-stopped
44+
ports:
45+
- "9121:9121"
46+
environment:
47+
REDIS_ADDR: redis://sportize-redis-local:6379
48+
REDIS_PASSWORD: password
49+
depends_on:
50+
- redis
51+
prometheus:
52+
image: prom/prometheus:v2.52.0
53+
container_name: sportize-prometheus-local
54+
restart: unless-stopped
55+
ports:
56+
- "9090:9090"
57+
volumes:
58+
- ./prometheus.local.yml:/etc/prometheus/prometheus.yml:ro
59+
- sportize_prometheus_data_local:/prometheus
60+
depends_on:
61+
- redis-exporter
62+
grafana:
63+
image: grafana/grafana:10.4.2
64+
container_name: sportize-grafana-local
65+
restart: unless-stopped
66+
ports:
67+
- "3000:3000"
68+
environment:
69+
GF_SECURITY_ADMIN_USER: admin
70+
GF_SECURITY_ADMIN_PASSWORD: admin
71+
GF_USERS_ALLOW_SIGN_UP: "false"
72+
TZ: Asia/Seoul
73+
volumes:
74+
- sportize_grafana_data_local:/var/lib/grafana
75+
depends_on:
76+
- prometheus
77+
78+
4079
volumes:
4180
sportize_pgdata_local:
42-
sportize_redisdata_local:
81+
sportize_redisdata_local:
82+
sportize_prometheus_data_local:
83+
sportize_grafana_data_local:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
global:
2+
scrape_interval: 5s
3+
4+
scrape_configs:
5+
- job_name: "redis-exporter"
6+
static_configs:
7+
- targets: ["redis-exporter:9121"]

0 commit comments

Comments
ย (0)