diff --git "a/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/New dashboard-1700969967327.json" "b/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/New dashboard-1700969967327.json" new file mode 100644 index 0000000000000000000000000000000000000000..d27519ce57a3626ac1b8e35f6e43fe1bc2dd516b --- /dev/null +++ "b/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/New dashboard-1700969967327.json" @@ -0,0 +1,756 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 2, + "links": [], + "liveNow": false, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "code", + "expr": "tomcat_connections_config_max_connections{job=\"xfg-dev-tech\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Tomcat - 最大连接数", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 4, + "y": 0 + }, + "id": 7, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "tomcat_threads_config_max_threads{job=\"xfg-dev-tech\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Tomcat - 最大线程数", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 15 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 4, + "x": 8, + "y": 0 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "10.2.0", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "tomcat_connections_current_connections{job=\"xfg-dev-tech\"}", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Tomcat-占用连接数", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "{__name__=\"tomcat_connections_current_connections\", instance=\"192.168.1.105:8091\", job=\"xfg-dev-tech\", name=\"http-nio-8091\"}" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": true + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "tomcat_connections_current_connections{job=\"xfg-dev-tech\"}", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Tomcat - 实时连接数", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 7 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "sum by(uri, exception, job) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/query_order_info\", method=\"GET\"}[5m]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "压测 - 查询订单信息", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 7 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "sum by(uri, exception) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/stream\", method=\"GET\"}[5m]))", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "压测 - 异步请求并发", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "sum by (uri) (increase(http_server_requests_seconds_sum{uri=~\"/api/hystrix/query_order_info\"}[1m]))\n/sum by (uri) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/query_order_info\"}[1m]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "压测-查询订单耗时", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "editorMode": "code", + "expr": "sum by (uri) (increase(http_server_requests_seconds_sum{uri=~\"/api/hystrix/stream\"}[1m]))\n/sum by (uri) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/stream\"}[1m]))", + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "压测-异步应答耗时", + "type": "timeseries" + } + ], + "refresh": "5s", + "schemaVersion": 38, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "New dashboard", + "uid": "b2458ea1-f02c-4388-b8c2-5c06a602b170", + "version": 8, + "weekStart": "" +} \ No newline at end of file diff --git "a/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/grafana.json" "b/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/grafana.json" deleted file mode 100644 index 88d006b9b9df6f0cc36865d7ec74f944baa162d7..0000000000000000000000000000000000000000 --- "a/dev-ops/Grafana\347\233\221\346\216\247\351\235\242\346\235\277\351\205\215\347\275\256/grafana.json" +++ /dev/null @@ -1,591 +0,0 @@ -{ -"annotations": { -"list": [ -{ -"builtIn": 1, -"datasource": { -"type": "grafana", -"uid": "-- Grafana --" -}, -"enable": true, -"hide": true, -"iconColor": "rgba(0, 211, 255, 1)", -"name": "Annotations & Alerts", -"type": "dashboard" -} -] -}, -"editable": true, -"fiscalYearStartMonth": 0, -"graphTooltip": 0, -"id": 1, -"links": [], -"liveNow": false, -"panels": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "thresholds" -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 7, -"w": 4, -"x": 0, -"y": 0 -}, -"id": 1, -"options": { -"colorMode": "value", -"graphMode": "area", -"justifyMode": "auto", -"orientation": "auto", -"reduceOptions": { -"calcs": [ -"lastNotNull" -], -"fields": "", -"values": false -}, -"textMode": "auto" -}, -"pluginVersion": "10.2.0", -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"disableTextWrap": false, -"editorMode": "builder", -"expr": "tomcat_threads_config_max_threads{job=\"xfg-dev-tech\"}", -"fullMetaSearch": false, -"includeNullMetadata": true, -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A", -"useBackend": false -} -], -"title": "Tomcat - 最大连接数", -"type": "stat" -}, -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "palette-classic" -}, -"custom": { -"axisBorderShow": false, -"axisCenteredZero": false, -"axisColorMode": "text", -"axisLabel": "", -"axisPlacement": "auto", -"barAlignment": 0, -"drawStyle": "line", -"fillOpacity": 0, -"gradientMode": "none", -"hideFrom": { -"legend": false, -"tooltip": false, -"viz": false -}, -"insertNulls": false, -"lineInterpolation": "linear", -"lineWidth": 1, -"pointSize": 5, -"scaleDistribution": { -"type": "linear" -}, -"showPoints": "auto", -"spanNulls": false, -"stacking": { -"group": "A", -"mode": "none" -}, -"thresholdsStyle": { -"mode": "off" -} -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 7, -"w": 20, -"x": 4, -"y": 0 -}, -"id": 2, -"options": { -"legend": { -"calcs": [], -"displayMode": "list", -"placement": "bottom", -"showLegend": true -}, -"tooltip": { -"mode": "single", -"sort": "none" -} -}, -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"editorMode": "code", -"expr": "tomcat_connections_current_connections{job=\"xfg-dev-tech\"}", -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A" -} -], -"title": "Tomcat - 实时连接数", -"type": "timeseries" -}, -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "palette-classic" -}, -"custom": { -"axisBorderShow": false, -"axisCenteredZero": false, -"axisColorMode": "text", -"axisLabel": "", -"axisPlacement": "auto", -"barAlignment": 0, -"drawStyle": "line", -"fillOpacity": 0, -"gradientMode": "none", -"hideFrom": { -"legend": false, -"tooltip": false, -"viz": false -}, -"insertNulls": false, -"lineInterpolation": "linear", -"lineWidth": 1, -"pointSize": 5, -"scaleDistribution": { -"type": "linear" -}, -"showPoints": "auto", -"spanNulls": false, -"stacking": { -"group": "A", -"mode": "none" -}, -"thresholdsStyle": { -"mode": "off" -} -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 6, -"w": 12, -"x": 0, -"y": 7 -}, -"id": 3, -"options": { -"legend": { -"calcs": [], -"displayMode": "list", -"placement": "bottom", -"showLegend": true -}, -"tooltip": { -"mode": "single", -"sort": "none" -} -}, -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"editorMode": "code", -"expr": "sum by(uri, exception, job) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/query_order_info\", method=\"GET\"}[5m]))", -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A" -} -], -"title": "压测 - 查询订单信息", -"type": "timeseries" -}, -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "palette-classic" -}, -"custom": { -"axisBorderShow": false, -"axisCenteredZero": false, -"axisColorMode": "text", -"axisLabel": "", -"axisPlacement": "auto", -"barAlignment": 0, -"drawStyle": "line", -"fillOpacity": 0, -"gradientMode": "none", -"hideFrom": { -"legend": false, -"tooltip": false, -"viz": false -}, -"insertNulls": false, -"lineInterpolation": "linear", -"lineWidth": 1, -"pointSize": 5, -"scaleDistribution": { -"type": "linear" -}, -"showPoints": "auto", -"spanNulls": false, -"stacking": { -"group": "A", -"mode": "none" -}, -"thresholdsStyle": { -"mode": "off" -} -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 6, -"w": 12, -"x": 12, -"y": 7 -}, -"id": 4, -"options": { -"legend": { -"calcs": [], -"displayMode": "list", -"placement": "bottom", -"showLegend": true -}, -"tooltip": { -"mode": "single", -"sort": "none" -} -}, -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"disableTextWrap": false, -"editorMode": "builder", -"expr": "sum by(uri, exception) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/stream\", method=\"GET\"}[5m]))", -"fullMetaSearch": false, -"includeNullMetadata": true, -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A", -"useBackend": false -} -], -"title": "压测 - 异步请求并发", -"type": "timeseries" -}, -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "palette-classic" -}, -"custom": { -"axisBorderShow": false, -"axisCenteredZero": false, -"axisColorMode": "text", -"axisLabel": "", -"axisPlacement": "auto", -"barAlignment": 0, -"drawStyle": "line", -"fillOpacity": 0, -"gradientMode": "none", -"hideFrom": { -"legend": false, -"tooltip": false, -"viz": false -}, -"insertNulls": false, -"lineInterpolation": "linear", -"lineWidth": 1, -"pointSize": 5, -"scaleDistribution": { -"type": "linear" -}, -"showPoints": "auto", -"spanNulls": false, -"stacking": { -"group": "A", -"mode": "none" -}, -"thresholdsStyle": { -"mode": "off" -} -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 6, -"w": 12, -"x": 0, -"y": 13 -}, -"id": 6, -"options": { -"legend": { -"calcs": [], -"displayMode": "list", -"placement": "bottom", -"showLegend": true -}, -"tooltip": { -"mode": "single", -"sort": "none" -} -}, -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"editorMode": "code", -"expr": "sum by (uri) (increase(http_server_requests_seconds_sum{uri=~\"/api/hystrix/query_order_info\"}[1m]))\n/sum by (uri) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/query_order_info\"}[1m]))", -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A" -} -], -"title": "压测-查询订单耗时", -"type": "timeseries" -}, -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"fieldConfig": { -"defaults": { -"color": { -"mode": "palette-classic" -}, -"custom": { -"axisBorderShow": false, -"axisCenteredZero": false, -"axisColorMode": "text", -"axisLabel": "", -"axisPlacement": "auto", -"barAlignment": 0, -"drawStyle": "line", -"fillOpacity": 0, -"gradientMode": "none", -"hideFrom": { -"legend": false, -"tooltip": false, -"viz": false -}, -"insertNulls": false, -"lineInterpolation": "linear", -"lineWidth": 1, -"pointSize": 5, -"scaleDistribution": { -"type": "linear" -}, -"showPoints": "auto", -"spanNulls": false, -"stacking": { -"group": "A", -"mode": "none" -}, -"thresholdsStyle": { -"mode": "off" -} -}, -"mappings": [], -"thresholds": { -"mode": "absolute", -"steps": [ -{ -"color": "green", -"value": null -}, -{ -"color": "red", -"value": 80 -} -] -} -}, -"overrides": [] -}, -"gridPos": { -"h": 6, -"w": 12, -"x": 12, -"y": 13 -}, -"id": 5, -"options": { -"legend": { -"calcs": [], -"displayMode": "list", -"placement": "bottom", -"showLegend": true -}, -"tooltip": { -"mode": "single", -"sort": "none" -} -}, -"targets": [ -{ -"datasource": { -"type": "prometheus", -"uid": "PBFA97CFB590B2093" -}, -"editorMode": "code", -"expr": "sum by (uri) (increase(http_server_requests_seconds_sum{uri=~\"/api/hystrix/stream\"}[1m]))\n/sum by (uri) (increase(http_server_requests_seconds_count{uri=~\"/api/hystrix/stream\"}[1m]))", -"instant": false, -"legendFormat": "__auto", -"range": true, -"refId": "A" -} -], -"title": "压测-异步应答耗时", -"type": "timeseries" -} -], -"refresh": "5s", -"schemaVersion": 38, -"tags": [], -"templating": { -"list": [] -}, -"time": { -"from": "now-15m", -"to": "now" -}, -"timepicker": {}, -"timezone": "", -"title": "New dashboard", -"uid": "b2458ea1-f02c-4388-b8c2-5c06a602b170", -"version": 11, -"weekStart": "" -} \ No newline at end of file diff --git a/xfg-dev-tech-app/src/main/resources/application-dev.yml b/xfg-dev-tech-app/src/main/resources/application-dev.yml index 1f42830a7890e1c27fb0840ca80e77e25449ed6e..8b02da124beeeb782755b0173907c7c4d6b6bbae 100644 --- a/xfg-dev-tech-app/src/main/resources/application-dev.yml +++ b/xfg-dev-tech-app/src/main/resources/application-dev.yml @@ -4,6 +4,7 @@ server: tomcat: mbeanregistry: enabled: true + max-connections: 20 threads: max: 20 # 设定处理客户请求的线程的最大数目,决定了服务器可以同时响应客户请求的数,默认200 min-spare: 10 # 初始化线程数,最小空闲线程数,默认是10