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 }