From 153efa2ca920d2a9762ca9291294b31d1d712001 Mon Sep 17 00:00:00 2001 From: GANGHYEON02 Date: Fri, 24 Jul 2026 16:26:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=98=A4=ED=86=A0=EC=8A=A4=EC=BC=80?= =?UTF-8?q?=EC=9D=BC=EB=A7=81/=EB=A1=9C=EB=93=9C=EB=B0=B8=EB=9F=B0?= =?UTF-8?q?=EC=8B=B1=20=EA=B2=80=EC=A6=9D=EC=9A=A9=20Grafana=20=EB=8C=80?= =?UTF-8?q?=EC=8B=9C=EB=B3=B4=EB=93=9C=20=ED=8C=A8=EB=84=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#687)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instance_name 라벨 기준으로 인스턴스별 RPS와 활성 인스턴스 수를 확인할 수 있는 패널 2개를 공통 대시보드에 추가한다. --- .../dashboards/json/common-dashboard.json | 119 +++++++++++++++++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/monitoring/grafana/provisioning/dashboards/json/common-dashboard.json b/monitoring/grafana/provisioning/dashboards/json/common-dashboard.json index d541931e..8eb33a5c 100644 --- a/monitoring/grafana/provisioning/dashboards/json/common-dashboard.json +++ b/monitoring/grafana/provisioning/dashboards/json/common-dashboard.json @@ -683,8 +683,125 @@ "refId": "B" } ] + }, + { + "id": 30, + "title": "인스턴스별 RPS — 오토스케일/로드밸런싱 확인용", + "type": "timeseries", + "gridPos": { + "h": 9, + "w": 16, + "x": 0, + "y": 35 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus_ds" + }, + "fieldConfig": { + "defaults": { + "unit": "reqps", + "color": { + "mode": "palette-classic" + }, + "custom": { + "drawStyle": "line", + "lineWidth": 2, + "fillOpacity": 12, + "pointSize": 4, + "showPoints": "never", + "spanNulls": true, + "gradientMode": "opacity" + } + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus_ds" + }, + "expr": "sum(rate(http_server_requests_seconds_count{application=\"hard-click\", uri=~\"$uri_filter\"}[1m])) by (instance_name)", + "legendFormat": "{{instance_name}}", + "refId": "A" + } + ] + }, + { + "id": 31, + "title": "활성 인스턴스 수", + "type": "stat", + "gridPos": { + "h": 9, + "w": 8, + "x": 16, + "y": 35 + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus_ds" + }, + "fieldConfig": { + "defaults": { + "unit": "short", + "decimals": 0, + "color": { + "mode": "fixed", + "fixedColor": "#5794F2" + }, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#5794F2", + "value": null + } + ] + }, + "custom": { + "fillOpacity": 15, + "lineWidth": 2 + } + }, + "overrides": [] + }, + "options": { + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "orientation": "auto", + "textMode": "value", + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto" + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus_ds" + }, + "expr": "count(up{job=\"hard-click-backend\"} == 1)", + "legendFormat": "active instances", + "refId": "A" + } + ] } ], "schemaVersion": 39, - "version": 1 + "version": 2 }