From 1e1f8b3c729f561eb3d3e0d04e0447553402aac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=A3=BC=EC=B0=AC?= Date: Sun, 22 Mar 2026 21:24:22 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=9C=EB=A9=94=ED=85=8C?= =?UTF-8?q?=EC=9A=B0=EC=8A=A4,=20=EA=B7=B8=EB=9D=BC=ED=8C=8C=EB=82=98=20?= =?UTF-8?q?=EB=8C=80=EC=8B=9C=EB=B3=B4=EB=93=9C=20=EA=B5=AC=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prothsync/compose.yaml | 33 ++++++++++++++++++- .../monitoring/prometheus/prometheus.yml | 4 +-- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/prothsync/compose.yaml b/prothsync/compose.yaml index 52149b8..423bbc2 100644 --- a/prothsync/compose.yaml +++ b/prothsync/compose.yaml @@ -27,10 +27,41 @@ services: volumes: - prothSync_redis_data:/data + prometheus: + image: 'prom/prometheus:latest' + container_name: prometheus-prothSync + volumes: + - ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml + - prothSync_prometheus_data:/prometheus + ports: + - "9090:9090" + networks: + - db-net + extra_hosts: + - "host.docker.internal:host-gateway" + + grafana: + image: 'grafana/grafana:latest' + container_name: grafana-prothSync + environment: + GF_SECURITY_ADMIN_USER: ${GRAFANA_ADMIN_USER:-admin} + GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:-admin} + TZ: ${TZ} + volumes: + - prothSync_grafana_data:/var/lib/grafana + ports: + - "3000:3000" + networks: + - db-net + depends_on: + - prometheus + networks: db-net: name: db-net volumes: prothSync_postgres_data: - prothSync_redis_data: \ No newline at end of file + prothSync_redis_data: + prothSync_prometheus_data: + prothSync_grafana_data: \ No newline at end of file diff --git a/prothsync/monitoring/prometheus/prometheus.yml b/prothsync/monitoring/prometheus/prometheus.yml index b778f9e..89c55a4 100644 --- a/prothsync/monitoring/prometheus/prometheus.yml +++ b/prothsync/monitoring/prometheus/prometheus.yml @@ -6,6 +6,4 @@ scrape_configs: - job_name: 'prothsync' metrics_path: '/actuator/prometheus' static_configs: - - targets: ['host.docker.internal:8080'] - labels: - application: 'prothsync' \ No newline at end of file + - targets: ['host.docker.internal:8080'] \ No newline at end of file