diff --git a/config/grafana/Nacos.json b/config/grafana/Nacos.json
deleted file mode 100644
index 0fc0e2b..0000000
--- a/config/grafana/Nacos.json
+++ /dev/null
@@ -1,4294 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "description": "Nacos grafana dashboard",
- "editable": true,
- "fiscalYearStartMonth": 0,
- "gnetId": 13221,
- "graphTooltip": 0,
- "id": 9,
- "links": [
- {
- "icon": "external link",
- "tags": [],
- "targetBlank": true,
- "title": "Monitor Guide",
- "type": "link",
- "url": "https://nacos.io/zh-cn/docs/monitor-guide.html"
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 80,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "nacos monitor",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 0,
- "y": 1
- },
- "id": 89,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "count(nacos_monitor{name=\"configCount\"})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "UP",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 3,
- "y": 1
- },
- "id": 90,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='serviceCount'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "service count",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 6,
- "y": 1
- },
- "id": 93,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='ipCount'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "ip count",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 9,
- "y": 1
- },
- "id": 92,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='configCount', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "config count",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 12,
- "y": 1
- },
- "id": 91,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='longPolling'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "long polling",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 3,
- "x": 15,
- "y": 1
- },
- "id": 88,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='getConfig', instance=~'$instance'}) by (name)",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "config push total",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1
- },
- "id": 82,
- "links": [],
- "options": {
- "code": {
- "language": "plaintext",
- "showLineNumbers": false,
- "showMiniMap": false
- },
- "content": "
\n \n
\n \n",
- "mode": "html"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "type": "text"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 50
- },
- {
- "color": "#d44a3a",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 0,
- "y": 4
- },
- "id": 33,
- "interval": "",
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "repeatDirection": "h",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(system_cpu_usage{instance=~'$instance'}) * 100",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "cpu",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 70,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 50
- },
- {
- "color": "#d44a3a",
- "value": 70
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 9,
- "y": 4
- },
- "id": 32,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{area=\"heap\", instance=~'$instance'})/sum(jvm_memory_max_bytes{area=\"heap\", instance=~'$instance'}) * 100",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "memory",
- "type": "gauge"
- },
- {
- "dashboardFilter": "",
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 16,
- "w": 6,
- "x": 18,
- "y": 4
- },
- "id": 48,
- "limit": 10,
- "links": [],
- "nameFilter": "",
- "onlyAlertsOnDashboard": false,
- "options": {
- "alertInstanceLabelFilter": "",
- "alertName": "",
- "dashboardAlerts": false,
- "groupBy": [],
- "groupMode": "default",
- "maxItems": 20,
- "sortOrder": 1,
- "stateFilter": {
- "error": true,
- "firing": true,
- "noData": false,
- "normal": false,
- "pending": true
- },
- "viewMode": "list"
- },
- "show": "current",
- "sortOrder": 1,
- "stateFilter": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "alert list",
- "type": "alertlist"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 1500,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 800
- },
- {
- "color": "#d44a3a",
- "value": 1500
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 0,
- "y": 8
- },
- "id": 29,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(jvm_threads_daemon_threads{instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "threads",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 20,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 5
- },
- {
- "color": "#d44a3a",
- "value": 10
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 9,
- "y": 8
- },
- "id": 30,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(system_load_average_1m{instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "load",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 5000,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 3000
- },
- {
- "color": "#d44a3a",
- "value": 5000
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 0,
- "y": 12
- },
- "id": 61,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_timer_seconds_sum{instance=~'$instance'}[1m]))/sum(rate(nacos_timer_seconds_count{instance=~'$instance'}[1m])) * 1000",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "notify rt",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 5000,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 3000
- },
- {
- "color": "#d44a3a",
- "value": 5000
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 9,
- "y": 12
- },
- "id": 26,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_sum{instance=~'$instance'}[1m]))/sum(rate(http_server_requests_seconds_count{instance=~'$instance'}[1m])) * 1000",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "rt",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 2000,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 1000
- },
- {
- "color": "#d44a3a",
- "value": 2000
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 0,
- "y": 16
- },
- "id": 25,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_count{instance=~'$instance'}[1m]))",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "qps",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 5000,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "#299c46",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 1000
- },
- {
- "color": "#d44a3a",
- "value": 5000
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 9,
- "x": 9,
- "y": 16
- },
- "id": 70,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='avgPushCost', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "title": "avgPushCost",
- "type": "gauge"
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20
- },
- "id": 78,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "nacos detail",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 20,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_sum{uri=~'/v1/cs/configs|/nacos/v1/ns', instance=~'$instance'}[1m])/rate(http_server_requests_seconds_count{uri=~'/v1/cs/configs|/nacos/v1/ns/instance|/nacos/v1/ns/health', instance=~'$instance'}[1m])) by (method,uri) * 1000",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_sum{instance=~'$instance'}[1m]))/sum(rate(http_server_requests_seconds_count{instance=~'$instance'}[1m])) * 1000",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "all",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "rt",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 41,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "group",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='longPolling', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "long polling",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 37,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(system_load_average_1m{instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "load 1m",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 26
- },
- "hiddenSeries": false,
- "id": 18,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_count{uri=~'/v1/cs/configs|/nacos/v1/ns/instance|/nacos/v1/ns/health', instance=~'$instance'}[1m])) by (method,uri)",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_count[1m]))",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "qps",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 26
- },
- "hiddenSeries": false,
- "id": 52,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='leaderStatus', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "leaderStatus",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 26
- },
- "hiddenSeries": false,
- "id": 50,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='avgPushCost', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "avgPushCost",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 53,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='maxPushCost', instance=~'$instance'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "maxPushCost",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 83,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='publish', instance=~'$instance'}) by (name)",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "publish config",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='getConfig', instance=~'$instance'}) by (name)",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "get config",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "config statistics",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 16,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_monitor{name=~'.*HealthCheck', instance=~'$instance'}[1m])) by (name) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "health check",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 36
- },
- "id": 74,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "nacos alert",
- "type": "row"
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 50
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "for": "1m",
- "frequency": "1m",
- "handler": 1,
- "name": "cpu alert",
- "noDataState": "ok",
- "notifications": [
- {
- "id": 1
- }
- ]
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 37
- },
- "hiddenSeries": false,
- "id": 45,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(system_cpu_usage) * 100",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 50
- }
- ],
- "timeRegions": [],
- "title": "cpu alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 15
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "load 1m alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 37
- },
- "hiddenSeries": false,
- "id": 86,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(system_load_average_1m)",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 15
- }
- ],
- "timeRegions": [],
- "title": "load alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 60
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "5m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "memory alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 37
- },
- "hiddenSeries": false,
- "id": 46,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{area=\"heap\"})/sum(jvm_memory_max_bytes{area=\"heap\"}) * 100",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 60
- }
- ],
- "timeRegions": [],
- "title": "memory alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 500
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "threads alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 42
- },
- "hiddenSeries": false,
- "id": 39,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(jvm_threads_daemon_threads)",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 500
- }
- ],
- "timeRegions": [],
- "title": "threads alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 5
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "for": "1m",
- "frequency": "1m",
- "handler": 1,
- "message": "too many full gc",
- "name": "gc alert",
- "noDataState": "ok",
- "notifications": [
- {
- "id": 1
- }
- ]
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 42
- },
- "hiddenSeries": false,
- "id": 38,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(rate(jvm_gc_pause_seconds_count{action=\"end of major GC\"}[5m])) * 300",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 5
- }
- ],
- "timeRegions": [],
- "title": "gc alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 10
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "notify task alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 42
- },
- "hiddenSeries": false,
- "id": 49,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='notifyTask'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 10
- }
- ],
- "timeRegions": [],
- "title": "notify task alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 5000
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "B",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "rt alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 47
- },
- "hiddenSeries": false,
- "id": 85,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_sum[1m]))/sum(rate(http_server_requests_seconds_count[1m])) * 1000",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "refId": "B"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 5000
- }
- ],
- "timeRegions": [],
- "title": "rt alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 5000
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "long polling alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 47
- },
- "hiddenSeries": false,
- "id": 84,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(nacos_monitor{name='longPolling'})",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 5000
- }
- ],
- "timeRegions": [],
- "title": "long polling alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "config unhealth exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 47
- },
- "hiddenSeries": false,
- "id": 56,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='unhealth'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "config unhealth exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "db exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 54,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='db'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "db exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "failedPush alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 51,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(nacos_monitor{name='failedPush'})",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "failed push alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "illegalArgument exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 59,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='illegalArgument'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "illegalArgument exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "5m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "naming disk exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 57
- },
- "hiddenSeries": false,
- "id": 57,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='disk'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "naming disk exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "config notify exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 8,
- "y": 57
- },
- "hiddenSeries": false,
- "id": 55,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='configNotify'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "config notify exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "naming leader send beat failed exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 16,
- "y": 57
- },
- "hiddenSeries": false,
- "id": 58,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='leaderSendBeatFailed'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "naming leader send beat failed exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "alert": {
- "conditions": [
- {
- "evaluator": {
- "params": [
- 1
- ],
- "type": "gt"
- },
- "operator": {
- "type": "and"
- },
- "query": {
- "params": [
- "A",
- "1m",
- "now"
- ]
- },
- "reducer": {
- "params": [],
- "type": "avg"
- },
- "type": "query"
- }
- ],
- "executionErrorState": "keep_state",
- "frequency": "60s",
- "handler": 1,
- "name": "nacos_exception alert",
- "noDataState": "ok",
- "notifications": []
- },
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "custom": {}
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 5,
- "w": 8,
- "x": 0,
- "y": 62
- },
- "hiddenSeries": false,
- "id": 60,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "7.2.1",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(nacos_exception_total{name='nacos'}[1m])) * 60",
- "format": "time_series",
- "intervalFactor": 1,
- "refId": "A"
- }
- ],
- "thresholds": [
- {
- "colorMode": "critical",
- "fill": true,
- "line": true,
- "op": "gt",
- "value": 1
- }
- ],
- "timeRegions": [],
- "title": "nacos exception alert",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "refresh": false,
- "schemaVersion": 37,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "allValue": "",
- "current": {
- "selected": false,
- "text": "127.0.0.1:8848",
- "value": "127.0.0.1:8848"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "label_values(jvm_classes_loaded_classes{job=\"Nacos\"},instance)",
- "hide": 0,
- "includeAll": false,
- "label": "instance",
- "multi": false,
- "name": "instance",
- "options": [],
- "query": {
- "query": "label_values(jvm_classes_loaded_classes{job=\"Nacos\"},instance)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-5m",
- "to": "now"
- },
- "timepicker": {
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "",
- "title": "Nacos",
- "uid": "Bz_QALEiz1",
- "version": 7,
- "weekStart": ""
-}
diff --git a/config/grafana/README.md b/config/grafana/README.md
deleted file mode 100644
index 2c48fb8..0000000
--- a/config/grafana/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# 将此文件夹下所有配置文件导入到 `grafana` 内生成展示看板(此模板与项目做了定制化与官方下载的不一致, 同名看板以框架自带的为主)
\ No newline at end of file
diff --git a/config/grafana/SLS JVM监控大盘.json b/config/grafana/SLS JVM监控大盘.json
deleted file mode 100644
index b83f9a2..0000000
--- a/config/grafana/SLS JVM监控大盘.json
+++ /dev/null
@@ -1,3759 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "limit": 100,
- "name": "Annotations & Alerts",
- "showIn": 0,
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "enable": true,
- "expr": "resets(process_uptime_seconds{application=\"$application\", instance=\"$instance\"}[1m]) > 0",
- "iconColor": "rgba(255, 96, 96, 1)",
- "limit": 100,
- "name": "进程重启打标",
- "showIn": 0,
- "step": "1m",
- "tagKeys": "restart-tag",
- "tags": [],
- "textFormat": "uptime reset",
- "titleFormat": "Restart",
- "type": "tags"
- }
- ]
- },
- "description": "Dashboard for Micrometer instrumented applications (Java, Spring Boot, Micronaut)",
- "editable": true,
- "fiscalYearStartMonth": 0,
- "gnetId": 12856,
- "graphTooltip": 1,
- "id": 11,
- "links": [
- {
- "icon": "external link",
- "tags": [],
- "title": "MicroMeter",
- "type": "link",
- "url": "http://micrometer.io/"
- },
- {
- "icon": "cloud",
- "tags": [],
- "title": "Aliyun SLS",
- "type": "link",
- "url": "https://www.aliyun.com/product/sls"
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 125,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "refId": "A"
- }
- ],
- "title": "概览",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 1,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1
- },
- "id": 63,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_uptime_seconds{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "进程启动时长",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "dateTimeAsIso"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 6,
- "y": 1
- },
- "id": 92,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_start_time_seconds{application=\"$application\", instance=\"$instance\"}*1000",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "进程启动时间",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 70
- },
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": 90
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 12,
- "y": 1
- },
- "id": 65,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "堆内存使用率",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 2,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- },
- {
- "options": {
- "from": -1e+32,
- "result": {
- "text": "N/A"
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 70
- },
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": 90
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 18,
- "y": 1
- },
- "id": 75,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"nonheap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "非堆内存使用率",
- "type": "stat"
- },
- {
- "collapsed": false,
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 4
- },
- "id": 126,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "refId": "A"
- }
- ],
- "title": "服务黄金指标",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "平均每秒处理的请求数",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 5
- },
- "hiddenSeries": false,
- "id": 111,
- "legend": {
- "avg": false,
- "current": true,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\"}[1m]))",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "HTTP",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "QPS(1分钟平均)",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "ops",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "HTTP": "#890f02",
- "HTTP - 5xx": "#bf1b00"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 5
- },
- "hiddenSeries": false,
- "id": 112,
- "legend": {
- "avg": false,
- "current": true,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status=~\"5..\"}[1m]))",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "HTTP - 5xx",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "错误数(1分钟平均)",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "ops",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 5
- },
- "hiddenSeries": false,
- "id": 113,
- "legend": {
- "avg": false,
- "current": true,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))/sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "HTTP - AVG",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "max(http_server_requests_seconds_max{application=\"$application\", instance=\"$instance\", status!~\"5..\"})",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "HTTP - MAX",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "请求耗时(1分钟平均)",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "饱和度指标来自于Google SRE的的黄金指标, 指服务的过载程度, 当系统过载时, 往往意味着请求需要排队处理",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 5
- },
- "hiddenSeries": false,
- "id": 119,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "tomcat_threads_busy_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "TOMCAT - BSY",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "tomcat_threads_current_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "TOMCAT - CUR",
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "tomcat_threads_config_max_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "TOMCAT - MAX",
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jetty_threads_busy{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "JETTY - BSY",
- "refId": "D"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jetty_threads_current{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "JETTY - CUR",
- "refId": "E"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jetty_threads_config_max{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "JETTY - MAX",
- "refId": "F"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "饱和度",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 12
- },
- "id": 127,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "uid": "${DS_SPRING-DEMOT}"
- },
- "refId": "A"
- }
- ],
- "title": "JVM 内存",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 13
- },
- "hiddenSeries": false,
- "id": 24,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "committed",
- "refId": "B",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "max",
- "refId": "C",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "堆内存",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 13
- },
- "hiddenSeries": false,
- "id": 25,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "committed",
- "refId": "B",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "max",
- "refId": "C",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "非堆内存",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 13
- },
- "hiddenSeries": false,
- "id": 26,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "committed",
- "refId": "B",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "max",
- "refId": "C",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "总内存",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "从操作系统层面看JVM进程的内存使用, 因为JVM并不是直接按照配置的内存参数申请全部内存",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 13
- },
- "hiddenSeries": false,
- "id": 86,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_memory_vss_bytes{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": true,
- "intervalFactor": 2,
- "legendFormat": "vss",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "rss",
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_memory_swap_bytes{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "swap",
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\"} + process_memory_swap_bytes{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "total",
- "refId": "D"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "JVM 进程内存",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "label": "",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 20
- },
- "id": 128,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "JVM 负载",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 106,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_cpu_usage{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "system",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_cpu_usage{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "process",
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "avg_over_time(process_cpu_usage{application=\"$application\", instance=\"$instance\"}[1h])",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "process-1h",
- "refId": "C"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "CPU 使用率",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 1,
- "format": "percentunit",
- "label": "",
- "logBase": 1,
- "max": "1",
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 93,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_load_average_1m{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "load1",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_cpu_count{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "cpu核数",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Load",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 1,
- "format": "short",
- "label": "",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 32,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_live_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "live",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_daemon_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "daemon",
- "metric": "",
- "refId": "B",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_peak_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "peak",
- "refId": "C",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "process",
- "refId": "D",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "线程数",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "blocked": "#bf1b00",
- "new": "#fce2de",
- "runnable": "#7eb26d",
- "terminated": "#511749",
- "timed-waiting": "#c15c17",
- "waiting": "#eab839"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "需特别关注blocked的线程数, 这意味着线程被阻塞了, 如果线程全部是blocked状态, 则系统无法处理新请求",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 21
- },
- "hiddenSeries": false,
- "id": 124,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_states_threads{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "{{state}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "各状态线程数",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {
- "debug": "#1F78C1",
- "error": "#BF1B00",
- "info": "#508642",
- "trace": "#6ED0E0",
- "warn": "#EAB839"
- },
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 18,
- "x": 0,
- "y": 28
- },
- "height": "",
- "hiddenSeries": false,
- "id": 91,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "hideEmpty": false,
- "hideZero": false,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": true,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "error",
- "yaxis": 1
- },
- {
- "alias": "warn",
- "yaxis": 1
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "increase(logback_events_total{application=\"$application\", instance=\"$instance\"}[1m])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "{{level}}",
- "metric": "",
- "refId": "A",
- "step": 1200
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Logback日志数",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 0,
- "format": "opm",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 28
- },
- "hiddenSeries": false,
- "id": 61,
- "legend": {
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_files_open_files{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "open",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_files_max_files{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 2,
- "legendFormat": "max",
- "metric": "",
- "refId": "B",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "文件描述符",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "logBase": 10,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 35
- },
- "id": 129,
- "panels": [],
- "repeat": "persistence_counts",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "JVM 堆内存详细",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 36
- },
- "hiddenSeries": false,
- "id": 3,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "maxPerRow": 3,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "jvm_memory_pool_heap",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 1800
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "commited",
- "metric": "",
- "refId": "B",
- "step": 1800
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "max",
- "metric": "",
- "refId": "C",
- "step": 1800
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "$jvm_memory_pool_heap",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 43
- },
- "id": 130,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "JVM 非堆内存详细",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 44
- },
- "hiddenSeries": false,
- "id": 78,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "maxPerRow": 3,
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "jvm_memory_pool_nonheap",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 1800
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "commited",
- "metric": "",
- "refId": "B",
- "step": 1800
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 2,
- "legendFormat": "max",
- "metric": "",
- "refId": "C",
- "step": 1800
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "$jvm_memory_pool_nonheap",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "mbytes",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 51
- },
- "id": 131,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "垃圾回收(GC)",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 98,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\"}[1m])",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "{{action}} ({{cause}})",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "GC 次数",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "ops",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 101,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "rate(jvm_gc_pause_seconds_sum{application=\"$application\", instance=\"$instance\"}[1m])/rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\"}[1m])",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "intervalFactor": 1,
- "legendFormat": "avg {{action}} ({{cause}})",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_gc_pause_seconds_max{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "intervalFactor": 1,
- "legendFormat": "max {{action}} ({{cause}})",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "GC暂停时间",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "内存分配的大小, 以及从新生代晋升到老年代的内存大小",
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 52
- },
- "hiddenSeries": false,
- "id": 99,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "rate(jvm_gc_memory_allocated_bytes_total{application=\"$application\", instance=\"$instance\"}[1m])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "allocated",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "rate(jvm_gc_memory_promoted_bytes_total{application=\"$application\", instance=\"$instance\"}[1m])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "promoted",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "内存分配/晋升",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "Bps",
- "logBase": 1,
- "min": "0",
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 59
- },
- "id": 132,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "类加载",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 60
- },
- "hiddenSeries": false,
- "id": 37,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_classes_loaded_classes{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "loaded",
- "metric": "",
- "refId": "A",
- "step": 1200
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "已加载的类的数量",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "description": "可能增加或减少, 在Java中使用一些脚本语言例如groovy时, 需要关注, 防止因为逻辑异常产生大量的类, 进而导致metaspace满, 而metaspace满会触发full gc, 如无法释放则会导致JVM hang住",
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 60
- },
- "hiddenSeries": false,
- "id": 38,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "delta(jvm_classes_loaded_classes{application=\"$application\",instance=\"$instance\"}[1m])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "delta-1m",
- "metric": "",
- "refId": "A",
- "step": 1200
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "加载类数量变化",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "ops",
- "short"
- ],
- "yaxes": [
- {
- "format": "short",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 67
- },
- "id": 133,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "Buffer Pools",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 0,
- "y": 68
- },
- "hiddenSeries": false,
- "id": 33,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "capacity",
- "metric": "",
- "refId": "B",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Direct Buffers",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 68
- },
- "hiddenSeries": false,
- "id": 83,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "count",
- "metric": "",
- "refId": "A",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Direct Buffers",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 12,
- "y": 68
- },
- "hiddenSeries": false,
- "id": 85,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "used",
- "metric": "",
- "refId": "A",
- "step": 2400
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "capacity",
- "metric": "",
- "refId": "B",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Mapped Buffers",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "editable": true,
- "error": false,
- "fieldConfig": {
- "defaults": {
- "links": []
- },
- "overrides": []
- },
- "fill": 1,
- "fillGradient": 0,
- "grid": {
- "leftLogBase": 1,
- "rightLogBase": 1
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 18,
- "y": 68
- },
- "hiddenSeries": false,
- "id": 84,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "count",
- "metric": "",
- "refId": "A",
- "step": 2400
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Mapped Buffers",
- "tooltip": {
- "msResolution": false,
- "shared": true,
- "sort": 0,
- "value_type": "cumulative"
- },
- "type": "graph",
- "x-axis": true,
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "y-axis": true,
- "y_formats": [
- "short",
- "short"
- ],
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "logBase": 1,
- "min": 0,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "refresh": "5s",
- "schemaVersion": 37,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": false,
- "text": "ruoyi-auth",
- "value": "ruoyi-auth"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": false,
- "label": "Application",
- "multi": false,
- "name": "application",
- "options": [],
- "query": {
- "query": "label_values(application)",
- "refId": "Prometheus-application-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "192.168.31.100:9210",
- "value": "192.168.31.100:9210"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": false,
- "label": "Instance",
- "multi": false,
- "multiFormat": "glob",
- "name": "instance",
- "options": [],
- "query": {
- "query": "label_values(jvm_memory_used_bytes{application=\"$application\"}, instance)",
- "refId": "Prometheus-instance-Variable-Query"
- },
- "refresh": 2,
- "regex": "",
- "skipUrlSync": false,
- "sort": 0,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "JVM Memory Pools Heap",
- "multi": false,
- "multiFormat": "glob",
- "name": "jvm_memory_pool_heap",
- "options": [],
- "query": {
- "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"},id)",
- "refId": "Prometheus-jvm_memory_pool_heap-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "allFormat": "glob",
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "JVM Memory Pools Non-Heap",
- "multi": false,
- "multiFormat": "glob",
- "name": "jvm_memory_pool_nonheap",
- "options": [],
- "query": {
- "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"},id)",
- "refId": "Prometheus-jvm_memory_pool_nonheap-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 2,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-24h",
- "to": "now"
- },
- "timepicker": {
- "now": true,
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "browser",
- "title": "1 SLS JVM监控大盘",
- "uid": "UOJjh1SMz",
- "version": 1,
- "weekStart": ""
-}
diff --git a/config/grafana/Spring Boot 2.1 Statistics.json b/config/grafana/Spring Boot 2.1 Statistics.json
deleted file mode 100644
index 7d40c80..0000000
--- a/config/grafana/Spring Boot 2.1 Statistics.json
+++ /dev/null
@@ -1,3590 +0,0 @@
-{
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "datasource",
- "uid": "grafana"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "description": "Dashboard for Spring Boot2.1 Statistics(based on Spring Boot2 Statistic by micrometer-prometheus).",
- "editable": true,
- "fiscalYearStartMonth": 0,
- "gnetId": 10280,
- "graphTooltip": 0,
- "id": 13,
- "links": [],
- "liveNow": false,
- "panels": [
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 0
- },
- "id": 54,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "Basic Statistics",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 1,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "s"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 1
- },
- "id": 52,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_uptime_seconds{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "Uptime",
- "type": "stat"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 1,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 70
- },
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": 90
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 5,
- "x": 6,
- "y": 1
- },
- "id": 58,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\"})",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "Heap Used",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "decimals": 1,
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- },
- {
- "options": {
- "from": -1e+32,
- "result": {
- "text": "N/A"
- },
- "to": 0
- },
- "type": "range"
- }
- ],
- "max": 100,
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "rgba(50, 172, 45, 0.97)",
- "value": null
- },
- {
- "color": "rgba(237, 129, 40, 0.89)",
- "value": 70
- },
- {
- "color": "rgba(245, 54, 54, 0.9)",
- "value": 90
- }
- ]
- },
- "unit": "percent"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 6,
- "w": 5,
- "x": 11,
- "y": 1
- },
- "id": 60,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"nonheap\"})",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "Non-Heap Used",
- "type": "gauge"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 6,
- "w": 8,
- "x": 16,
- "y": 1
- },
- "hiddenSeries": false,
- "id": 66,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_files_open_files{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Open Files",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_files_max_files{application=\"$application\", instance=\"$instance\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Max Files",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Process Open Files",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "locale",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "dateTimeAsIso"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 6,
- "x": 0,
- "y": 4
- },
- "id": 56,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "value",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_start_time_seconds{application=\"$application\", instance=\"$instance\"}*1000",
- "format": "time_series",
- "intervalFactor": 2,
- "legendFormat": "",
- "metric": "",
- "refId": "A",
- "step": 14400
- }
- ],
- "title": "Start time",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 7
- },
- "hiddenSeries": false,
- "id": 95,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_cpu_usage{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "System CPU Usage",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "process_cpu_usage{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Process CPU Usage",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "CPU Usage",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 7
- },
- "hiddenSeries": false,
- "id": 96,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_load_average_1m{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Load Average [1m]",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "system_cpu_count{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "CPU Core Size",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Load Average",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 14
- },
- "id": 48,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "JVM Statistics - Memory",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 15
- },
- "hiddenSeries": false,
- "id": 85,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "memory_pool_heap",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Used",
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_committed_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Commited",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_max_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_heap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Max",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "$memory_pool_heap (heap)",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 23
- },
- "hiddenSeries": false,
- "id": 88,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "repeat": "memory_pool_nonheap",
- "repeatDirection": "h",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Used",
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_committed_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Commited",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_memory_max_bytes{instance=\"$instance\", application=\"$application\", id=\"$memory_pool_nonheap\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Max",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "$memory_pool_nonheap (non-heap)",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 8,
- "y": 31
- },
- "hiddenSeries": false,
- "id": 80,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(jvm_classes_unloaded_classes_total{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Classes Unloaded",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Classes Unloaded",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "decimals": 0,
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 39
- },
- "hiddenSeries": false,
- "id": 50,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_classes_loaded_classes{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Classes Loaded",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Classes Loaded",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 0,
- "format": "locale",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 39
- },
- "hiddenSeries": false,
- "id": 83,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"mapped\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Used Bytes",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_total_capacity_bytes{instance=\"$instance\", application=\"$application\", id=\"mapped\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Capacity Bytes",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Mapped Buffers",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 46
- },
- "hiddenSeries": false,
- "id": 78,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(jvm_gc_memory_allocated_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "allocated",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(jvm_gc_memory_promoted_bytes_total{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "promoted",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Memory Allocate/Promote",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 47
- },
- "hiddenSeries": false,
- "id": 82,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_memory_used_bytes{instance=\"$instance\", application=\"$application\", id=\"direct\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Used Bytes",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_buffer_total_capacity_bytes{instance=\"$instance\", application=\"$application\", id=\"direct\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Capacity Bytes",
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Direct Buffers",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 54
- },
- "hiddenSeries": false,
- "id": 68,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_daemon_threads{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Daemon",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_live_threads{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Live",
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "jvm_threads_peak_threads{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Peak",
- "refId": "C"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Threads",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 62
- },
- "id": 72,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "JVM Statistics - GC",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 0,
- "y": 63
- },
- "hiddenSeries": false,
- "id": 74,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideEmpty": true,
- "hideZero": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(jvm_gc_pause_seconds_count{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{action}} [{{cause}}]",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "GC Count",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "locale",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 12,
- "y": 63
- },
- "hiddenSeries": false,
- "id": 76,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "hideEmpty": true,
- "hideZero": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(jvm_gc_pause_seconds_sum{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{action}} [{{cause}}]",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "GC Stop the World Duration",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 73
- },
- "id": 34,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "HikariCP Statistics",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 4,
- "x": 0,
- "y": 74
- },
- "id": 44,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "Connections Size",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 8,
- "w": 20,
- "x": 4,
- "y": 74
- },
- "hiddenSeries": false,
- "id": 36,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "hideEmpty": true,
- "hideZero": false,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": true,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_active{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Active",
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_idle{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Idle",
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_pending{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Pending",
- "refId": "C"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connections",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 4,
- "x": 0,
- "y": 78
- },
- "id": 46,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_timeout_total{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "refId": "A"
- }
- ],
- "title": "Connection Timeout Count",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 6,
- "w": 8,
- "x": 0,
- "y": 82
- },
- "hiddenSeries": false,
- "id": 38,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_creation_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_creation_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Creation Time",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connection Creation Time",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 6,
- "w": 8,
- "x": 8,
- "y": 82
- },
- "hiddenSeries": false,
- "id": 42,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_usage_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_usage_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Usage Time",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connection Usage Time",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 6,
- "w": 8,
- "x": 16,
- "y": 82
- },
- "hiddenSeries": false,
- "id": 40,
- "legend": {
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "hikaricp_connections_acquire_seconds_sum{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"} / hikaricp_connections_acquire_seconds_count{instance=\"$instance\", application=\"$application\", pool=\"$hikaricp\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Acquire Time",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Connection Acquire Time",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 88
- },
- "id": 18,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "HTTP Statistics",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 89
- },
- "hiddenSeries": false,
- "id": 4,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "rightSide": true,
- "show": true,
- "total": false,
- "values": false
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(http_server_requests_seconds_count{instance=\"$instance\", application=\"$application\", uri!~\".*actuator.*\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{method}} [{{status}}] - {{uri}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Request Count",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 24,
- "x": 0,
- "y": 96
- },
- "hiddenSeries": false,
- "id": 2,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": false,
- "max": true,
- "min": true,
- "rightSide": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(http_server_requests_seconds_sum{instance=\"$instance\", application=\"$application\", exception=\"None\", uri!~\".*actuator.*\"}[5m]) / irate(http_server_requests_seconds_count{instance=\"$instance\", application=\"$application\", exception=\"None\", uri!~\".*actuator.*\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{method}} [{{status}}] - {{uri}}",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Response Time",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "s",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 103
- },
- "id": 22,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "Undertow Statistics",
- "type": "row"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "locale"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 4,
- "w": 4,
- "x": 0,
- "y": 104
- },
- "id": 28,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "undertow_connectors_requests_error_count{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "B"
- }
- ],
- "title": "Total Error Count",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "decimals": 0,
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 9,
- "x": 4,
- "y": 104
- },
- "hiddenSeries": false,
- "id": 24,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "undertow_sessions_active_current_sessions{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "active sessions",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "B"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Active Sessions",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "label": "",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 11,
- "x": 13,
- "y": 104
- },
- "hiddenSeries": false,
- "id": 26,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "irate(undertow_connectors_bytes_sent_bytes{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Sent Bytes",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "irate(undertow_connectors_bytes_received_bytes{instance=\"$instance\", application=\"$application\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Recieved Bytes",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "C"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "D"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Sent & Recieved Bytes",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "bytes",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [
- {
- "options": {
- "match": "null",
- "result": {
- "text": "N/A"
- }
- },
- "type": "special"
- }
- ],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "locale"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 3,
- "w": 4,
- "x": 0,
- "y": 108
- },
- "id": 32,
- "links": [],
- "maxDataPoints": 100,
- "options": {
- "colorMode": "none",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "textMode": "auto"
- },
- "pluginVersion": "9.2.4",
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "undertow_xwork_worker_pool_max_size{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "C"
- }
- ],
- "title": "Thread Config Max",
- "type": "stat"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 13,
- "x": 0,
- "y": 111
- },
- "hiddenSeries": false,
- "id": 30,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "undertow_xwork_worker_pool_size{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Current thread",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "editorMode": "code",
- "expr": "undertow_xwork_worker_thread_busy_count{instance=\"$instance\", application=\"$application\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Current thread busy",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": {
- "type": "prometheus"
- },
- "hide": false,
- "refId": "C"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "Threads",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "short",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "collapsed": false,
- "datasource": {
- "type": "prometheus"
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 118
- },
- "id": 8,
- "panels": [],
- "targets": [
- {
- "datasource": {
- "type": "prometheus"
- },
- "refId": "A"
- }
- ],
- "title": "Logback Statistics",
- "type": "row"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 119
- },
- "hiddenSeries": false,
- "id": 6,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "",
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"info\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "info",
- "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "INFO logs",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 119
- },
- "hiddenSeries": false,
- "id": 10,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "",
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"error\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "error",
- "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "ERROR logs",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 0,
- "y": 126
- },
- "hiddenSeries": false,
- "id": 14,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "",
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"warn\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "warn",
- "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "WARN logs",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 126
- },
- "hiddenSeries": false,
- "id": 16,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "",
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"debug\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "debug",
- "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "DEBUG logs",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": {
- "type": "prometheus"
- },
- "fill": 1,
- "fillGradient": 0,
- "gridPos": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 126
- },
- "hiddenSeries": false,
- "id": 20,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {
- "alertThreshold": true
- },
- "percentage": false,
- "pluginVersion": "9.2.4",
- "pointradius": 5,
- "points": false,
- "renderer": "flot",
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "",
- "datasource": {
- "type": "prometheus"
- },
- "expr": "irate(logback_events_total{instance=\"$instance\", application=\"$application\", level=\"trace\"}[5m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "trace",
- "rawSql": "SELECT\n $__time(time_column),\n value1\nFROM\n metric_table\nWHERE\n $__timeFilter(time_column)\n",
- "refId": "A"
- }
- ],
- "thresholds": [],
- "timeRegions": [],
- "title": "TRACE logs",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "mode": "time",
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "none",
- "logBase": 1,
- "show": true
- },
- {
- "format": "short",
- "logBase": 1,
- "show": true
- }
- ],
- "yaxis": {
- "align": false
- }
- }
- ],
- "refresh": "5s",
- "schemaVersion": 37,
- "style": "dark",
- "tags": [],
- "templating": {
- "list": [
- {
- "current": {
- "selected": true,
- "text": "ruoyi-auth",
- "value": "ruoyi-auth"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "label_values(application)",
- "hide": 0,
- "includeAll": false,
- "label": "Application",
- "multi": false,
- "name": "application",
- "options": [],
- "query": {
- "query": "label_values(application)",
- "refId": "Prometheus-application-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "192.168.31.100:9210",
- "value": "192.168.31.100:9210"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "label_values(jvm_classes_loaded_classes{application=\"$application\"}, instance)",
- "hide": 0,
- "includeAll": false,
- "label": "Instance",
- "multi": false,
- "name": "instance",
- "options": [],
- "query": {
- "query": "label_values(jvm_classes_loaded_classes{application=\"$application\"}, instance)",
- "refId": "Prometheus-instance-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "isNone": true,
- "selected": false,
- "text": "None",
- "value": ""
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": false,
- "label": "HikariCP-Pool",
- "multi": false,
- "name": "hikaricp",
- "options": [],
- "query": {
- "query": "label_values(hikaricp_connections{instance=\"$instance\", application=\"$application\"}, pool)",
- "refId": "Prometheus-hikaricp-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "Memory Pool (heap)",
- "multi": false,
- "name": "memory_pool_heap",
- "options": [],
- "query": {
- "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"},id)",
- "refId": "Prometheus-memory_pool_heap-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
- {
- "current": {
- "selected": false,
- "text": "All",
- "value": "$__all"
- },
- "datasource": {
- "type": "prometheus"
- },
- "definition": "",
- "hide": 0,
- "includeAll": true,
- "label": "Memory Pool (nonheap)",
- "multi": false,
- "name": "memory_pool_nonheap",
- "options": [],
- "query": {
- "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"},id)",
- "refId": "Prometheus-memory_pool_nonheap-Variable-Query"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- }
- ]
- },
- "time": {
- "from": "now-1h",
- "to": "now"
- },
- "timepicker": {
- "refresh_intervals": [
- "5s",
- "10s",
- "30s",
- "1m",
- "5m",
- "15m",
- "30m",
- "1h",
- "2h",
- "1d"
- ],
- "time_options": [
- "5m",
- "15m",
- "1h",
- "6h",
- "12h",
- "24h",
- "2d",
- "7d",
- "30d"
- ]
- },
- "timezone": "",
- "title": "Spring Boot 2.1 Statistics",
- "uid": "spring_boot_21",
- "version": 3,
- "weekStart": ""
-}
diff --git a/dk-common/common-workflow/pom.xml b/dk-common/common-workflow/pom.xml
new file mode 100644
index 0000000..446a8f9
--- /dev/null
+++ b/dk-common/common-workflow/pom.xml
@@ -0,0 +1,58 @@
+
+
+
+ org.dromara
+ dk-common
+ ${revision}
+
+ 4.0.0
+
+ common-workflow
+
+
+ 工作流模块
+
+
+
+
+
+ org.dromara
+ common-mybatis
+
+
+
+ commons-io
+ commons-io
+ 2.15.0
+
+
+
+ org.dromara
+ system
+ 2.2.2
+ compile
+
+
+
+
+ ${project.artifactId}
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+ ${spring-boot.version}
+
+
+
+ repackage
+
+
+
+
+
+
+
+
+
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/ServiceException.java b/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/ServiceException.java
new file mode 100644
index 0000000..40cbaea
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/ServiceException.java
@@ -0,0 +1,61 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.Exception;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.dromara.common.Exception.enums.abs.AbstractBaseExceptionEnum;
+import org.dromara.common.response.WorkflowResultCode;
+
+/**
+ * 业务异常
+ *
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class ServiceException extends RuntimeException {
+
+ private Integer code;
+
+ private String errorMessage;
+
+ public ServiceException(Integer code, String errorMessage) {
+ super(errorMessage);
+ this.code = code;
+ this.errorMessage = errorMessage;
+ }
+
+ public ServiceException(AbstractBaseExceptionEnum exception) {
+ super(exception.getMessage());
+ this.code = exception.getCode();
+ this.errorMessage = exception.getMessage();
+ }
+
+ public ServiceException(WorkflowResultCode resultCode) {
+ super(resultCode.message());
+ this.code = resultCode.code();
+ this.errorMessage = resultCode.message();
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/enums/abs/AbstractBaseExceptionEnum.java b/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/enums/abs/AbstractBaseExceptionEnum.java
new file mode 100644
index 0000000..6210412
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/Exception/enums/abs/AbstractBaseExceptionEnum.java
@@ -0,0 +1,47 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.Exception.enums.abs;
+
+/**
+
+ * @date 2017/12/17 22:22
+ */
+public interface AbstractBaseExceptionEnum {
+
+ /**
+ * 获取异常的状态码
+ *
+ * @return 状态码
+ */
+ Integer getCode();
+
+ /**
+ * 获取异常的提示信息
+ *
+ * @return 提示信息
+ */
+ String getMessage();
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/consts/ExceptionCodeConstant.java b/dk-common/common-workflow/src/main/java/org/dromara/common/consts/ExceptionCodeConstant.java
new file mode 100644
index 0000000..72c3b6a
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/consts/ExceptionCodeConstant.java
@@ -0,0 +1,27 @@
+package org.dromara.common.consts;
+
+public interface ExceptionCodeConstant {
+ // es错误码 {10} {00} {03} {001-100}
+ interface Elasticsearch {
+ int ES_INDEX_NOT_EXIST = 100003001;
+ }
+
+ // 数据源 {10} {00} {04} {001-100}
+ interface DataSource {
+ int TABLE_NAME_REPEAT = 100004001;
+
+ int COLUMN_NULL = 100004002;
+
+ int INCREMENTAL_COLUMN_NULL = 100004003;
+
+ // Incrementalolumn is not in column config
+ int INCREMENTAL_COLUMN_NOT_IN_CONFIG = 100004004;
+ }
+
+ // 业务代码异常
+ interface Service {
+ int SQL_EXCEPTION = 100008001;
+ int OBJECT_TARGET_NOT_EXIST = 100008051;
+ int VALUE_INVALID = 100010001;
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/entity/WorkflowBaseEntity.java b/dk-common/common-workflow/src/main/java/org/dromara/common/entity/WorkflowBaseEntity.java
new file mode 100644
index 0000000..f0f986a
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/entity/WorkflowBaseEntity.java
@@ -0,0 +1,67 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldFill;
+import com.baomidou.mybatisplus.annotation.TableField;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * 通用基础字段,需要此通用字段的实体可继承此类
+ *
+ */
+@Data
+public class WorkflowBaseEntity implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 创建时间
+ */
+ @TableField(fill = FieldFill.INSERT)
+ private Date createTime;
+
+ /**
+ * 创建人
+ */
+ @TableField(fill = FieldFill.INSERT)
+ private Long createUser;
+
+ /**
+ * 更新时间
+ */
+ @TableField(fill = FieldFill.UPDATE)
+ private Date updateTime;
+
+ /**
+ * 更新人
+ */
+ @TableField(fill = FieldFill.UPDATE)
+ private Long updateUser;
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageFactory.java b/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageFactory.java
new file mode 100644
index 0000000..16a18f0
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageFactory.java
@@ -0,0 +1,153 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.page;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import jakarta.servlet.http.HttpServletRequest;
+import org.dromara.common.util.HttpServletUtil;
+
+import java.util.Collections;
+import java.util.List;
+
+
+/**
+ * 默认分页参数构建
+ *
+ */
+public class WorkflowPageFactory {
+
+ /**
+ * 每页大小(默认20)
+ */
+ private static final String PAGE_SIZE_PARAM_NAME = "pageSize";
+
+ /**
+ * 第几页(从1开始)
+ */
+ private static final String PAGE_NO_PARAM_NAME = "pageNo";
+
+ /**
+ * 默认分页,在使用时PageFactory.defaultPage会自动获取pageSize和pageNo参数
+ *
+ * @author xuyuxiang
+ * @date 2020/3/30 16:42
+ */
+ public static Page defaultPage() {
+
+ int pageSize = 10;
+ int pageNo = 1;
+
+ HttpServletRequest request = HttpServletUtil.getRequest();
+
+ //每页条数
+ String pageSizeString = request.getParameter(PAGE_SIZE_PARAM_NAME);
+ if (ObjectUtil.isNotEmpty(pageSizeString)) {
+ pageSize = Integer.parseInt(pageSizeString);
+ }
+
+ //第几页
+ String pageNoString = request.getParameter(PAGE_NO_PARAM_NAME);
+ if (ObjectUtil.isNotEmpty(pageNoString)) {
+ pageNo = Integer.parseInt(pageNoString);
+ }
+
+ return new Page<>(pageNo, pageSize);
+ }
+
+ public static Page customPage(Integer pageSize,Integer pageNo) {
+
+ if(ObjectUtil.hasEmpty(pageNo,pageSize)){
+
+ return defaultPage();
+ }
+
+ return new Page<>(pageNo, pageSize);
+ }
+
+ public static Page defaultPage(Integer pageNoParam,Integer pageSizeParam) {
+
+ int pageSize = 10;
+ int pageNo = 1;
+
+ //每页条数 moren
+ if (ObjectUtil.isNotEmpty(pageSizeParam)) {
+ pageSize = pageSizeParam;
+ }
+
+ //第几页
+ if (ObjectUtil.isNotEmpty(pageNoParam)) {
+ pageNo = pageNoParam;
+ }
+
+ return new Page<>(pageNo, pageSize);
+ }
+
+
+ public static Page customPage(Boolean limited) {
+
+ if(ObjectUtil.equal(limited,true)){
+
+ return defaultPage();
+ }
+
+ return new Page<>(0, -1);
+ }
+
+ /**
+ * 得到分页后的数据
+ * @return 分页后结果
+ */
+ public static List getPagedList(List data) {
+ int pageSize = 10;
+ int pageNo = 1;
+
+ HttpServletRequest request = HttpServletUtil.getRequest();
+
+ //每页条数
+ String pageSizeString = request.getParameter(PAGE_SIZE_PARAM_NAME);
+ if (ObjectUtil.isNotEmpty(pageSizeString)) {
+ pageSize = Integer.parseInt(pageSizeString);
+ }
+
+ //第几页
+ String pageNoString = request.getParameter(PAGE_NO_PARAM_NAME);
+ if (ObjectUtil.isNotEmpty(pageNoString)) {
+ pageNo = Integer.parseInt(pageNoString);
+ }
+
+ int fromIndex = (pageNo - 1) * pageSize;
+ if (fromIndex >= data.size()) {
+ return Collections.emptyList();
+ }
+
+ int toIndex = pageNo * pageSize;
+ if (toIndex >= data.size()) {
+ toIndex = data.size();
+ }
+ return data.subList(fromIndex, toIndex);
+ }
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageResult.java b/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageResult.java
new file mode 100644
index 0000000..46ab91e
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/page/WorkflowPageResult.java
@@ -0,0 +1,119 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.page;
+
+import cn.hutool.core.convert.Convert;
+import cn.hutool.core.util.PageUtil;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 分页结果集
+ *
+ * @author xuyuxiang
+ * @date 2020/3/30 15:44
+ */
+@Data
+public class WorkflowPageResult implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+
+ /**
+ * 默认分页彩虹展示数量
+ */
+ public static final int RAINBOW_NUM = 5;
+
+ /**
+ * 第几页
+ */
+ private Integer pageNo = 1;
+
+ /**
+ * 每页条数
+ */
+ private Integer pageSize = 20;
+
+ /**
+ * 总页数
+ */
+ private Integer totalPage = 0;
+
+ /**
+ * 总记录数
+ */
+ private Integer totalRows = 0;
+
+ /**
+ * 结果集
+ */
+ private List rows;
+
+ /**
+ * 分页彩虹
+ */
+ private int[] rainbow;
+
+ public WorkflowPageResult() {
+ }
+
+ /**
+ * 将mybatis-plus的page转成自定义的PageResult,扩展了totalPage总页数,和rainBow彩虹条
+ *
+ * @author xuyuxiang
+ * @date 2020/4/8 19:20
+ */
+ public WorkflowPageResult(Page page) {
+ this.setRows(page.getRecords());
+ this.setTotalRows(Convert.toInt(page.getTotal()));
+ this.setPageNo(Convert.toInt(page.getCurrent()));
+ this.setPageSize(Convert.toInt(page.getSize()));
+ this.setTotalPage(PageUtil.totalPage(Convert.toInt(page.getTotal()),
+ Convert.toInt(page.getSize())));
+// this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
+// Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
+ }
+
+ /**
+ * 将mybatis-plus的page转成自定义的PageResult,扩展了totalPage总页数,和rainBow彩虹条
+ * 可单独设置rows
+ *
+ * @author xuyuxiang
+ * @date 2020/4/14 20:55
+ */
+ public WorkflowPageResult(IPage> page, List t) {
+ this.setRows(t);
+ this.setTotalRows(Convert.toInt(page.getTotal()));
+ this.setPageNo(Convert.toInt(page.getCurrent()));
+ this.setPageSize(Convert.toInt(page.getSize()));
+ this.setTotalPage(PageUtil.totalPage(Convert.toInt(page.getTotal()),
+ Convert.toInt(page.getSize())));
+// this.setRainbow(PageUtil.rainbow(Convert.toInt(page.getCurrent()),
+// Convert.toInt(this.getTotalPage()), RAINBOW_NUM));
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/param/WorkflowBaseParam.java b/dk-common/common-workflow/src/main/java/org/dromara/common/param/WorkflowBaseParam.java
new file mode 100644
index 0000000..967a217
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/param/WorkflowBaseParam.java
@@ -0,0 +1,355 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.param;
+
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 通用基础参数,相关实体参数校验可继承此类
+ *
+ */
+@Data
+public class WorkflowBaseParam implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 是否禁用权限
+ */
+ private boolean withoutPermission = false;
+
+ /**
+ * 是否进行分页
+ */
+ private Boolean showPageNation = true;
+
+ /**
+ * 搜索值
+ */
+ private String searchValue;
+
+
+ /**
+ * 数据权限
+ */
+ private List dataScope;
+
+
+ /**
+ * 开始时间
+ */
+ private String startTime;
+
+ /**
+ * 结束时间
+ */
+ private String endTime;
+
+ /**
+ * 状态(字典 0正常 1停用 2删除)
+ */
+ private Integer searchStatus;
+
+ /**
+ * 参数校验分组:分页
+ */
+ public @interface page {
+ }
+
+ /**
+ * 参数校验分组:列表
+ */
+ public @interface list {
+ }
+
+ /**
+ * 参数校验分组:下拉
+ */
+ public @interface dropDown {
+ }
+
+ /**
+ * 参数校验分组:增加
+ */
+ public @interface add {
+ }
+
+ /**
+ * 参数校验分组:编辑
+ */
+ public @interface edit {
+ }
+
+ public @interface status {
+ }
+
+ /**
+ * 参数校验分组:更新信息
+ */
+ public @interface updateInfo {
+ }
+
+ /**
+ * 参数校验分组:修改密码
+ */
+ public @interface updatePwd {
+ }
+
+ /**
+ * 参数校验分组:重置密码
+ */
+ public @interface resetPwd {
+ }
+
+ /**
+ * 参数校验分组:修改头像
+ */
+ public @interface updateAvatar {
+ }
+
+ public @interface updateTask{
+ }
+
+ /**
+ * 参数校验分组:删除
+ */
+ public @interface delete {
+ }
+
+ /**
+ * 参数校验分组:详情
+ */
+ public @interface detail {
+ }
+
+ public @interface batch {
+ }
+
+ /**
+ * 参数校验分组:授权角色
+ */
+ public @interface grantRole {
+ }
+
+ /**
+ * 参数校验分组:授权菜单
+ */
+ public @interface grantMenu {
+ }
+
+ /**
+ * 参数校验分组:授权数据
+ */
+ public @interface grantData {
+ }
+
+ /**
+ * 参数校验分组:强退
+ */
+ public @interface force {
+ }
+
+ /**
+ * 参数校验分组:停用
+ */
+ public @interface stop {
+ }
+
+ /**
+ * 参数校验分组:启用
+ */
+ public @interface start {
+ }
+
+ /**
+ * 参数校验分组:部署
+ */
+ public @interface deploy {
+ }
+
+ /**
+ * 参数校验分组:挂起
+ */
+ public @interface suspend {
+ }
+
+ /**
+ * 参数校验分组:激活
+ */
+ public @interface active {
+ }
+
+ /**
+ * 参数校验分组:调试
+ */
+ public @interface debug {
+ }
+
+ /**
+ * 参数校验分组:委托
+ */
+ public @interface entrust {
+ }
+
+ /**
+ * 参数校验分组:转办
+ */
+ public @interface turn {
+ }
+
+ /**
+ * 参数校验分组:追踪
+ */
+ public @interface trace {
+ }
+
+ /**
+ * 参数校验分组:跳转
+ */
+ public @interface jump {
+ }
+
+ /**
+ * 参数校验分组:同意
+ */
+ public @interface agree {
+ }
+
+ /**
+ * 参数校验分组:退回
+ */
+ public @interface back {
+ }
+
+ /**
+ * 参数校验分组:终止
+ */
+ public @interface end {
+ }
+
+ /**
+ * 参数校验分组:导出
+ */
+ public @interface export {
+ }
+
+ /**
+ * 参数校验分组:映射
+ */
+ public @interface mapping {
+ }
+
+ /**
+ * 参数校验分组:切换
+ */
+ public @interface change {
+ }
+
+ /**
+ * 参数校验分组:历史审批记录
+ */
+ public @interface commentHistory {
+ }
+
+ /**
+ * 参数校验分组:修改状态
+ */
+ public @interface changeStatus {
+ }
+
+ /**
+ * 参数校验分组:传阅
+ */
+ public @interface circulate {
+ }
+
+ /**
+ * 参数校验分组:加签
+ */
+ public @interface addSign {
+ }
+
+ /**
+ * 参数校验分组:减签
+ */
+ public @interface deleteSign {
+ }
+
+ /**
+ * 参数校验分组:添加节点
+ */
+ public @interface addNode {
+ }
+
+ /**
+ * 参数校验分组:节点流转
+ */
+ public @interface flow {
+ }
+
+
+ public @interface apply {
+ }
+ public @interface submit {
+ }
+
+ public @interface reject {
+ }
+ public @interface cancel {
+ }
+ public @interface finish {
+ }
+
+ public @interface rollback {
+ }
+
+
+ /**
+ * 参数校验分组:节点转交
+ */
+ public @interface forward {
+ }
+
+
+ public @interface valid {}
+
+ public @interface check {}
+
+
+ public @interface todo {}
+
+ public @interface handle {}
+
+ public @interface cc {}
+
+ public @interface urge {}
+
+ public @interface install {
+ }
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/requestno/RequestNoContext.java b/dk-common/common-workflow/src/main/java/org/dromara/common/requestno/RequestNoContext.java
new file mode 100644
index 0000000..1d467c8
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/requestno/RequestNoContext.java
@@ -0,0 +1,58 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.requestno;
+
+/**
+ * 临时保存当前请求号
+ *
+ */
+public class RequestNoContext {
+
+ private static final ThreadLocal CONTEXT_HOLDER = new ThreadLocal<>();
+
+ /**
+ * 保存请求号
+ *
+ */
+ public static void set(String requestNo) {
+ CONTEXT_HOLDER.set(requestNo);
+ }
+
+ /**
+ * 获取请求号
+ *
+ */
+ public static String get() {
+ return CONTEXT_HOLDER.get();
+ }
+
+ /**
+ * 清除请求号
+ *
+ */
+ public static void clear() {
+ CONTEXT_HOLDER.remove();
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowErrorResponseData.java b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowErrorResponseData.java
new file mode 100644
index 0000000..d2ae4ec
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowErrorResponseData.java
@@ -0,0 +1,58 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.response;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 失败响应结果
+ *
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class WorkflowErrorResponseData extends WorkflowResponseData {
+
+ /**
+ * 异常的具体类名称
+ */
+ private String exceptionClazz;
+
+ WorkflowErrorResponseData(String message) {
+ super(false, DEFAULT_ERROR_CODE, message, null);
+ }
+
+ public WorkflowErrorResponseData(Integer code, String message) {
+ super(false, code, message, null);
+ }
+
+ WorkflowErrorResponseData(Integer code, String message, Object object) {
+ super(false, code, message, object);
+ }
+ WorkflowErrorResponseData(){
+ super();
+ }
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResponseData.java b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResponseData.java
new file mode 100644
index 0000000..2038cdc
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResponseData.java
@@ -0,0 +1,97 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.response;
+
+import lombok.Data;
+
+/**
+ * 响应结果数据
+ *
+ */
+@Data
+public class WorkflowResponseData {
+
+ public static final String DEFAULT_SUCCESS_MESSAGE = "请求成功";
+
+ public static final String DEFAULT_ERROR_MESSAGE = "网络异常";
+
+ public static final Integer DEFAULT_SUCCESS_CODE = 200;
+
+ public static final Integer DEFAULT_ERROR_CODE = 500;
+
+ /**
+ * 请求是否成功
+ */
+ private Boolean success;
+
+ /**
+ * 响应状态码
+ */
+ private Integer code;
+
+ /**
+ * 响应信息
+ */
+ private String message;
+
+ /**
+ * 响应对象
+ */
+ private Object data;
+
+ public WorkflowResponseData() {
+ }
+
+ public WorkflowResponseData(Boolean success, Integer code, String message, Object data) {
+ this.success = success;
+ this.code = code;
+ this.message = message;
+ this.data = data;
+ }
+
+ public static WorkflowSuccessResponseData success() {
+ return new WorkflowSuccessResponseData();
+ }
+
+ public static WorkflowSuccessResponseData success(Object object) {
+ return new WorkflowSuccessResponseData(object);
+ }
+
+ public static WorkflowSuccessResponseData success(Integer code, String message, Object object) {
+ return new WorkflowSuccessResponseData(code, message, object);
+ }
+
+ public static WorkflowErrorResponseData error(String message) {
+ return new WorkflowErrorResponseData(message);
+ }
+
+ public static WorkflowErrorResponseData error(Integer code, String message) {
+ return new WorkflowErrorResponseData(code, message);
+ }
+
+ public static WorkflowErrorResponseData error(Integer code, String message, Object object) {
+ return new WorkflowErrorResponseData(code, message, object);
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResult.java b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResult.java
new file mode 100644
index 0000000..dcb756c
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResult.java
@@ -0,0 +1,54 @@
+package org.dromara.common.response;
+
+import lombok.Data;
+
+/**
+ * API 接口返回对象
+ */
+@Data
+public class WorkflowResult extends WorkflowResponseData {
+
+ public static WorkflowSuccessResponseData success(){
+ WorkflowSuccessResponseData result = new WorkflowSuccessResponseData();
+ result.setSuccess(true);
+ result.setCode(WorkflowResultCode.SUCCESS.code());
+ result.setMessage(WorkflowResultCode.SUCCESS.message());
+ return result;
+ }
+
+ public static WorkflowSuccessResponseData success(Object data){
+ WorkflowSuccessResponseData result = new WorkflowSuccessResponseData();
+ result.setSuccess(true);
+ result.setCode(WorkflowResultCode.SUCCESS.code());
+ result.setMessage(WorkflowResultCode.SUCCESS.message());
+ result.setData(data);
+ return result;
+ }
+
+ public static WorkflowSuccessResponseData success(Object data, String message){
+ WorkflowSuccessResponseData result = new WorkflowSuccessResponseData();
+ result.setSuccess(true);
+ result.setCode(WorkflowResultCode.SUCCESS.code());
+ result.setMessage(message);
+ result.setData(data);
+ return result;
+ }
+
+
+ public static WorkflowErrorResponseData error(WorkflowResultCode resultCode){
+ WorkflowErrorResponseData result = new WorkflowErrorResponseData();
+ result.setSuccess(false);
+ result.setCode(resultCode.code());
+ result.setMessage(resultCode.message());
+ return result;
+ }
+
+ public static WorkflowErrorResponseData error(WorkflowResultCode resultCode, Object data){
+ WorkflowErrorResponseData result = new WorkflowErrorResponseData();
+ result.setSuccess(false);
+ result.setCode(resultCode.code());
+ result.setMessage(resultCode.message());
+ result.setData(data);
+ return result;
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResultCode.java b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResultCode.java
new file mode 100644
index 0000000..ab75e90
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowResultCode.java
@@ -0,0 +1,691 @@
+package org.dromara.common.response;
+
+public enum WorkflowResultCode {
+
+ /** 200~299 成功,操作被成功接收和处理 */
+ SUCCESS(200,"执行成功"),
+
+ /** 500~599 失败,服务器再处理请求过程中发生得错误 */
+ FAIL(500,"糟糕,服务器竟然出岔子了,建议刷新页面再试试"),
+ SAVE_FAIL(501,"新增失败"),
+ UPDATE_FAIL(502,"修改失败"),
+ DELETE_FAIL(503,"删除失败"),
+ NOT_SUPPORT(504,"不支持该操作"),
+
+ /** 1001~9999 业务执行错误码 */
+ /** 998 Ladp服务 */
+ ERROR_LADP_FAIL(998000, "认证失败!"),
+ ERROR_LADP_NONE_USER(998001, "无效用户!"),
+ ERROR_LADP_ERROR(998002, "认证异常!"),
+ CAS_INVALID_TICKET(9020,"CAS Ticket无效"),
+
+ /** 角色 ****/
+ ROLE_NOT_EXIST(9020,"角色不存在 "),
+
+ ROLE_DATA_SCOPE_EMPTY(9020,"角色数据模型为空 "),
+
+ USER_ROLE_NOT_EXIST(9020,"登录用户无角色信息,请联系管理员 "),
+
+ ROLE_SYSTEM_FLAG(9020,"系统预设无法删除! "),
+
+ /**
+ * 应用
+ */
+ APP_NOT_FOUND(1921,"应用不存在"),
+
+ /** 组织机构 */
+ DEPT_PARENT_NOT_EXIST(1010,"上级部门不存在"),
+ DEPT_CODE_REPEAT(1011,"部门代码重复"),
+ DEPT_NAME_REPEAT(1012,"部门名称重复"),
+ DEPT_NOT_EXIST(1013,"部门不存在"),
+ DEPT_DEL_FAIL(1014,"删除失败"),
+ DEPT_ERROR_FAIL(1015,"部门信息添加失败"),
+ DEPT_NOT_VALID(1016,"部门不合法"),
+
+
+ /** 教师 */
+ TEACHER_GH_REPEAT(1030, "工号重复"),
+ TEACHER_NOT_EXIST(1031, "教师不存在"),
+
+ TEACHER_CLASS_EXIST(1032, "班级已添加辅导员,无法添加,请重新选择!"),
+
+
+ /** 学生 */
+ STU_XH_REPEAT(1050,"学号重复"),
+ STU_NOT_EXIST(1051, "学生不存在"),
+
+ /** 白名单 */
+ ALERT_WHITE_EXIST(1056,"此学生已存在于白名单中,请勿重复添加"),
+ ALERT_WHITE_NOT_STU(1057,"白名单用户只能为学生,请检查后提交"),
+ /** 文件 */
+ REPORT_NOT_EXIST(1052,"分析报告不存在"),
+ ASSETS_PATH_NOT_EXIST(1052,"静态资源目录不存在"),
+ COMPOSE_FILE_ERROR(1053,"文件压缩失败"),
+ FILE_SUFFIX_NOT_ALLOWED(1054,"文件类型不合法"),
+
+ FEEDBACK_SETTING_NOT_FOUND(1029,"反馈设置不存在"),
+
+ WATERMARK_SETTING_NOT_FOUND(1029,"水印设置不存在"),
+
+
+ /** 预警分类 **/
+ ALERT_TYPE_REPEAT(2023,"预警分类名称重复"),
+ ALERT_TYPE_DELETE(2024,"已产生对应预警事件分类数据,如需删除,请联系管理员"),
+
+ USER_CANNOT_DELETE_ADMIN(9020, "超级管理员不能删除"),
+
+
+ USER_PERMISSION_ERROR(100105, "用户无权限,请联系管理员"),
+
+ /** 用户组 */
+ GROUP_NAME_NOT_EXIST(1060,"用户组名称不存在"),
+ GROUP_NAME_REPEAT(1061,"用户组名称重复"),
+ GROUP_OPENED_NOT_EXIST(1062,"用户组类型不存在"),
+ GROUP_USER_NOT_EXIST(1063,"用户组成员存在"),
+ GROUP_ID_NOT_EXIST(1064,"用户组ID不存在"),
+
+
+ YEAR_IS_NOT_VALID(5001,"学年不合法,请重新配置"),
+ SCHOOL_CALENDAR_SERVER_ERROR(5002,"节假日API服务异常"),
+ SCHOOL_CALENDAR_SETTING_NOT_FOUND(5003,"校历管理设置不存在"),
+ SCHOOL_CALENDAR_DATE_NOT_RANGE(5003,"设置的日期不在配置的时间范围内,请重新选择!"),
+ SCHOOL_CALENDAR_DURATION(5003,"节假日期间不允许同步预警"),
+
+ /**
+ * 自定义表单
+ */
+ FORM_MAKING_NAME_REPEAT(1061,"表单名称重复"),
+
+ FORM_NOT_VALID(4027,"表单数据格式不正确"),
+
+ FORM_WIDGET_NOT_ALLOWED(1240, "不合法的表单字段"),
+
+
+ /**
+ * 文件
+ */
+ FILE_UPLOAD_FAIL(1870, "上传失败!"),
+
+
+ /** 字典 */
+ DICT_TYPE_NOT_EXIST(1150, "字典不存在"),
+
+ /**
+ * 用户认证
+ */
+ PWD_ERROR(1,"密码错误,请联系管理员"),
+ ACCOUNT_PWD_EMPTY(1, "账号或密码为空,请检查账号或密码"),
+ ACCOUNT_PWD_ERROR(2, "账号或密码错误,请检查账号或密码"),
+ VALID_CODE_ERROR(3, "验证码错误,请检查captcha参数"),
+ REQUEST_TOKEN_EMPTY(4, "请求token为空,请携带token访问本接口"),
+ NOT_VALID_TOKEN_TYPE(5, "token格式不正确,token请以Bearer开头,并且Bearer后边带一个空格"),
+ REQUEST_TOKEN_ERROR(6, "请求token错误"),
+ ACCOUNT_FREEZE_ERROR(7, "账号已停用,请联系管理员"),
+ LOGIN_EXPIRED(8, "登录已过期,请重新登录"),
+ NO_LOGIN_USER(9, "无登录用户"),
+ MODE_NOT_PERMISSION(10, "当前接口只允许在开发和测试环境调用"),
+ TEMP_USER_NO_PERMISSION(11, "临时用户无访问权限"),
+ USER_IS_NOT_ADMIN(12, "非管理员用户无法访问"),
+
+ REFERER_ERROR(77, "REFER非法"),
+ PARAM_IS_INVALID(9001,"参数无效"),
+ PARAM_IS_BLANK(9002,"参数为空"),
+ PARAM_BAD_TYPE(9003,"参数类型错误"),
+ PARAM_MISSING(9004,"参数缺失"),
+ RESULT_EMPTY(9004, "查询结果为空"),
+ PARAM_PARSE_ERROR(9005,"参数解析异常"),
+ DOWNLOAD_FILE_ERROR(9006,"附件下载异常"),
+ ENV_NOT_ALLOWED(9001,"系统环境异常,请联系管理员"),
+
+ FILE_UPLOAD_ERROR(1055,"文件上传失败"),
+
+ SYSTEM_NOT_FOUND(3006, "应用不存在"),
+
+ MODULE_NOT_FOUND(3006, "模块不存在"),
+
+
+ /**
+ *开放接口鉴权
+ */
+ AUTH_PARAM_APPKEY_NOT_FOUND(7001,"APP_KEY参数缺失"),
+ AUTH_PARAM_APPKEY_ERROR(7001,"APP_KEY参数错误"),
+ AUTH_PARAM_SIGN_NOT_FOUND(7002,"签名参数缺失"),
+ AUTH_PARAM_TIMESTAMP_NOT_FOUND(7003,"时间戳参数缺失"),
+ AUTH_PARAM_TIMESTAMP_ERROR(7004,"时间戳参数错误"),
+ AUTH_PARAM_SIGN_ERROR(7005,"签名校验失败"),
+ AUTH_PARAM_SIGN_TYPE_ERROR(7006,"签名类型不合法"),
+ AUTH_DATA_ACCOUNT_EMPTY(7100, "账号为空"),
+
+
+ TAG_NOT_EXIST(2001,"未找到标签"),
+
+ TAG_FACTORY_NOT_CONFIG(2001,"标签工厂未配置"),
+
+ TAG_FACTORY_SERVER_ERROR(9017, "标签工厂服务异常"),
+ TAG_FACTORY_SERVER_EMPTY(9017, "标签工厂服务返回为空"),
+
+ TAG_FACTORY_URL_EMPTY(9018, "标签工厂地址未设置,无法配置同步预警对象,请先设置地址!"),
+
+ TAG_FACTORY_CONFIG_ERROR(9019, "未设置标签工厂信息,请联系管理员"),
+
+ AUTHORIZE_SETTING_ERROR(100102, "免登认证配置不合法,请检查配置"),
+
+ /**
+ * 用户
+ */
+ USER_NOT_EXIST(9010,"用户不存在"),
+ USER_LOGIN_ERROR(9011,"账户不存在或密码错误"),
+ USER_ACCT_FORBIDDEN(9012,"账户已禁用"),
+ USER_HAS_EXIST(9013,"用户已存在"),
+ USER_ACCT_PWD_EMPTY(9014, "账号或密码为空"),
+ USER_AUTH_FAIL(9015, "认证失败"),
+ AUTH_WXWORK_NO_CODE(9016, "企业微信认证失败:code 参数为空"),
+ AUTH_CAS_NO_TICKET(9017, "CAS认证失败:ticket 参数为空"),
+
+ AUTH_SC_CAS_NO_UID(9017, "CAS认证失败:uid 参数为空"),
+
+ USER_PHONE_EXIST(9018,"手机号已存在"),
+
+ SOURCE_NOT_EXIST(1136, "资源不存在"),
+
+
+ ALERT_STATUS_ERROR(2001,"预警状态异常"),
+
+ ALERT_TAG_FLOW_NOT_EXIST(2001,"预警标签未配置流程"),
+
+ ALERT_NOT_EXIST(2001,"未找到预警信息"),
+ ALERT_TAG_NOT_EXIST(2001,"预警事件不存在"),
+ ALERT_TEMPLATE_NOT_EXIST(2001,"预警模板不存在"),
+ ALERT_TEMPLATE_RULE_INSTALLED(2001,"预警模板已安装"),
+ ALERT_TEMPLATE_NAME_REPEAT(2001,"预警模板已重复"),
+
+
+ /**
+ * 机构管理
+ */
+ DELETE_HAS_SUB_DEPART(3000, "本部门存在下级部门,不允许删除"),
+ DELETE_HAS_USERS_IN_DEPART(3001, "部门内存在成员,不允许删除"),
+ CONTACT_MANAGER_NOT_EXIST(3002, "管理组不存在"),
+ CONTACT_MANAGER_MORE_ONE(3003, "一个用户只能存在一个管理组中"),
+ CONTACT_MANAGER_SUPER_ADMIN_CANNOT_SET(3004, "超级管理员不能添加到任何权限组"),
+ CONTACT_MANAGER_SYSTEM_DELETE(3005, "系统管理组不能删除"),
+ CONTACT_MANAGER_SYSTEM_UPDATE(3006, "系统管理组不能编辑"),
+ CONTACT_MANAGER_USER_NOT_IN(3007, "当前用户不是管理员"),
+
+
+ /**
+ * 开放平台
+ */
+ PLUGIN_CODE_REPEAT(7200,"插件已存在,请勿重复添加"),
+ PLUGIN_CODE_NOT_EXIST(7201,"插件不存在,请联系管理员"),
+
+
+
+ INSTANCE_STAGE_ERROR(992,"流程实例状态异常"),
+
+ INSTANCE_STAGE_FINISHED(993,"流程已结束,请勿重复操作"),
+
+ INSTANCE_STAGE_COMPETED(994,"流程已完成,请勿重复操作"),
+
+ HANDLER_USER_NOT_EXIST(995,"处理人不存在,请联系系统管理员"),
+
+ DEFINITION_NOT_EXIST(996,"未找到流程配置信息"),
+
+ DEFINITION_RUNNING_NODE_NOT_EXIST(997,"未找到正在运行的流程定义"),
+
+ DEFINITION_NODE_NOT_EXIST(998,"未找到流程节点配置信息"),
+
+ DEFINITION_NODE_FLOW_RULE_NOT_EXIST(998,"未找到流程节点流转规则配置"),
+
+ NODE_TYPE_NOT_EXIST(999,"节点类型不存在"),
+
+ NODE_START_NOT_EXIST(1000,"开始节点不存在"),
+
+ NODE_CHECKER_TASK_NOT_EXIST(1001,"任务不存在"),
+
+ NODE_STARTING_TRIGGER_SCENE_NOT_PERMISSION(1002,"节点不满足触发场景条件"),
+
+ NODE_OPERATION_NOT_EXIST(1003,"节点操作类型不存在"),
+
+ NODE_STARTING_TRIGGER_FIELD_NOT_PERMISSION(1004,"节点不满足触发字段条件"),
+
+ NODE_STARTING_TRIGGER_DATA_NOT_PERMISSION(1005,"节点不满足触发数据条件"),
+
+ NODE_STARTING_DATA_NOT_PERMISSION(1006,"节点数据校验不满足条件"),
+
+ NODE_NOT_EXIST(1007,"未找到流程节点"),
+
+ NODE_NEXT_NOT_EXIST(1008,"找不到审核节点"),
+
+ NODE_CHECKER_NOT_PERMISSION(1009,"当前用户无审核权限"),
+
+ NODE_CHECKER_NOT_EXIST(1010,"审核节点审核人不存在"),
+
+ FORWARD_USER_NOT_EXIST(1011,"转交人为空"),
+
+ FORWARD_USER_ERROR(1012,"转交人不能是当前处理人"),
+
+ INSTANCE_NOT_EXIST(1003,"流程数据不存在"),
+
+ NODE_TYPE_ERROR(1014,"节点类型参数异常"),
+
+ NODE_SUGGEST_NOT_EMPTY(1015,"审核节点文本意见不能为空"),
+
+ NODE_SIGNATURE_NOT_EMPTY(1016,"审核节点手写签名不能为空"),
+
+ PERMISSION_SUBMIT_NO_PERMISSION(1017,"当前处理人无发起流程权限"),
+
+ TASK_HAS_EXPIRED(1017,"待办任务已失效,请刷新页面"),
+
+ PERMISSION_FORWARD_NO_PERMISSION(1018,"当前处理人无转交处理流程权限"),
+
+ PERMISSION_RECALL_NOT_OPEN(1019,"系统未开启撤回功能"),
+
+ PERMISSION_RECALL_NO_PERMISSION(1020,"当前处理人无撤回流程权限"),
+
+ PERMISSION_RECALL_APPROVAL_NO_PERMISSION(1021,"任务节点已有人提交,发起人无法撤回"),
+
+ PERMISSION_ROLLBACK_NOT_OPEN(1022,"系统未开启回退功能"),
+
+ ROLLBACK_KEY_NOT_EXIST(1022,"回退节点不存在"),
+
+ ROLLBACK_NODE_NOT_PERMISSION(1027,"回退节点不合法"),
+
+ ROLLBACK_START_USER_NOT_EXIST(1028,"流程为匿名填报,无法回退到开始节点"),
+
+ ROLLBACK_TASK_USER_NOT_EXIST(1029,"流程回退节点找不到负责人,请检查流程设定配置"),
+
+ MOVING_NEXT_NODE_NOT_EXIST(1023,"找不到下一节点,流程无法流转"),
+
+ MOVING_NEXT_NODE_CHECKER_NOT_EXIST(1024,"未找到下一个节点审核人"),
+
+ NODE_FLOW_ERROR(1025,"提交失败,不符合流转条件"),
+
+ INVALID_OPERATION(1026,"无效的操作类型"),
+
+ INSTANCE_STATUS_ERROR(1028,"流程状态异常"),
+
+ NODE_ACTIVE_NOT_EXIST(1029,"找不到激活节点"),
+
+ SETTING_ARCHIVE_NOT_EXIST(1029,"归档设置异常,请检查流程设置"),
+
+ ARCHIVE_USER_NOT_PERMISSION(1030,"用户无权限发起归档"),
+
+ CC_USER_NOT_PERMISSION(1031,"用户无权限发起抄送"),
+
+ CC_USER_NOT_EXIST(1031,"抄送用户不存在"),
+
+ CC_TASK_NOT_EXIST(1032,"抄送任务不存在"),
+
+ ENGINE_RESULT_EMPTY(1033,"流程引擎结果为空"),
+
+ FLOW_RUNTIME_EXCEPTION(1034, "流程引擎发生异常,请联系管理员"),
+
+ FLOW_STAGE_ERROR(1034, "存在未处理的预警,请检查后重新提交"),
+
+
+ NODE_CHECKER_USER_LIMIT(1035,"节点审核人数量不能超过100人"),
+
+ NODE_CC_USER_LIMIT(1036,"节点抄送人数量不能超过100人"),
+
+ FORM_DATA_HAS_DELETE(1037,"数据已被删除"),
+
+ FORM_DETAIL_NOT_EXIST(1134, "表单信息不存在"),
+
+
+ TASK_NOT_EXIST(1038,"该流程已被处理或撤回"),
+
+ TASK_PARAM_NOT_EXIST(1039,"待办参数不存在"),
+
+ TASK_HAS_HANDLED(1040,"待办任务已处理"),
+
+ TASK_PROCESSING_HAS_CHANGED(1040,"待办任务已在处理中状态,请勿重复更新"),
+
+
+ NODE_TRANSFER_CHECKER_NOT_CHANGE(1041,"流程负责人未改动"),
+
+ NODE_TRANSFER_CHECKER_EMPTY(1042,"流程负责人为空"),
+
+ USER_NOT_PERMISSION(1043,"用户无权限"),
+
+ ROLE_NOT_PERMISSION(1043,"该角色暂无权限访问系统"),
+
+ FLOW_INSTANCE_STARTER_NOT_FOUND(1044,"未找到流程发起人"),
+
+ FLOW_INSTANCE_URGE_CLOSED(1045,"流程设定未开启催办"),
+
+ FLOW_INSTANCE_URGE_LIMITED(1046,"5分钟内至多发送一次督办提醒"),
+
+ FLOW_INSTANCE_URGE_NODE_ERROR(1046,"流程实例异常,请稍后再试"),
+
+ FORM_PERMISSION_FAIL(1300, "用户无表单访问权限"),
+ FLOW_DEFINITION_NOT_EXIST(1301, "流程定义不存在"),
+ FLOW_DEFINITION_START_PROCESS_NOT_EXIST(1302, "流程定义开始节点不存在"),
+ FLOW_INSTANCE_FAIL(1303, "表单已填报,请勿重复填报"),
+ FLOW_INSTANCE_NOT_EXIST(1304, "流程实例不存在"),
+ FLOW_INSTANCE_STATUS_ERROR(1306, "流程实例状态异常"),
+ DATASOURCE_NOT_FOUND(1281, "找不到数据源"),
+
+ FLOW_DRAFT_SUCCESS(1344, "草稿保存成功"),
+
+ FLOW_URGE_SUCCESS(1344, "已提醒负责人处理"),
+
+ FLOW_INSTANCE_PROCESS_NOT_EXIST(1305, "流程实例节点不存在"),
+ FLOW_INSTANCE_CC_NOT_EXIST(1306, "实例抄送不存在"),
+ FLOW_INSTANCE_EXIST(1305, "存在流程实例"),
+
+ FLOW_PERMISSION_RECALL_FAIL(1320, "用户无权限撤回"),
+ FLOW_APPROVAL_NOT_PERMISSION(1321, "当前用户无审核权限"),
+ FLOW_ROLLBACK_NOT_PERMISSION(1323, "当前用户无权限退回该流程"),
+ FLOW_INSTANCE_NOT_SUBMIT(1322, "实例还没填报"),
+ FLOW_DEFINITION_NOT_APPROVER(1323, "审批节点未设置审核人"),
+ FLOW_DEFINITION_INSTANCE_EXIST(1325, "该流程定义存在运行实例"),
+ FLOW_DEFINITION_EXIST(1327, "流程定义已存在"),
+ FLOW_VERSION_FORM_ERROR(1326, "表单状态异常"),
+ FLOW_DEFINITION_PARAM_ERROR(1327, "流程参数异常"),
+ FLOW_USER_ROLE_NOT_PERMISSION(1328, "用户身份校验失败"),
+ FLOW_DEFINITION_NODE_NOT_EXIST(1329, "流程定义节点数据不存在"),
+ FLOW_FORM_NOT_PERMISSION(1330, "表单参数异常"),
+ FLOW_LINE_ELSE_CONDITION_ERROR(1331, "连接线存在多个else条件"),
+ FLOW_BUTTON_ROLLBACK_ERROR(1332, "未找到回退按钮"),
+ FLOW_DEFINITION_VERSION_NOT_EXIST(1333, "未找到流程定义"),
+ FLOW_INSTANCE_NOT_FINISHED(1334, "实例未结束"),
+ FLOW_ENDNODE_NOT_EXIST(1335, "未找到结束节点"),
+ FLOW_NEXT_PROCES_NOT_EXIST(1324, "提交失败,找不到下个审核节点,可联系管理员检查流程节点后重新提交。"),
+ FLOW_LINE_CONDITION_ERROR(1331, "提交失败,不符合流转条件,可联系管理员检查流转条件后重新提交。"),
+ FLOW_NEXT_NODE_CHECKER_MISSING(1336, "提交失败,找不到下个节点负责人,可联系管理员检查节点负责人后重新提交。"),
+ FLOW_INSTANCE_STAGE_NOT_APPROVAL(1337, "抱歉,审核任务已过期"),
+ FLOW_APPROVAL_PERMISSION_ERROE(1338, "抱歉,你没有审核权限"),
+ FLOW_DEFINITION_VERSION_STAGE_ERROR(1339, "流程版本状态异常"),
+ FLOW_FORM_FIELD_PERMISSION(1340, "节点未设置表单字段"),
+ FLOW_FORM_APPROVAL_NOT_EXIST(1341, "审核节点未设置审核人"),
+ FLOW_NODE_COUNT_ERROR(1342, "回退节点数量异常"),
+
+ FLOW_INSTANCE_STAGE_FINISHED(1343, "抱歉,审核任务已结束"),
+ FLOW_INSTANCE_STAGE_RECALL(1344, "抱歉,审核任务已撤回"),
+
+ CHECK_PARAM_TIME_ERROR(4000, "登记时间参数格式异常"),
+
+ /**
+ * 业务异常
+ */
+ MODULE_NAME_REPEAT(2, "模块已存在,请检查后提交"),
+ FORM_NAME_REPEAT(2, "表单已存在,请检查后提交"),
+ MENU_NAME_REPEAT(2, "数据中心已存在,请检查后提交"),
+
+ MENU_NAME_DEFAULT(2, "默认的数据中心只能有一个,请检查后在提交"),
+ MODULE_NOT_EXIST(1001,"模块不存在"),
+ MODULE_FIELD_NOT_EXIST(1002,"模块字段为空"),
+
+ SCHOOL_NOT_INIT(1004,"学校基础信息未初始化,无法同步师生数据"),
+
+
+ DATASOURCE_TYPE_NOT_SUPPORTED(1003,"数据源目前不支持此类型"),
+
+ ES_RETURN_EMPTY(2, "数据分析平台返回数据为空!"),
+
+
+ CLASS_RETURN_EMPTY(2, "班级信息为空!"),
+
+ FACULTY_RETURN_EMPTY(2, "学院信息为空!"),
+
+ USER_RETURN_EMPTY(2, "用户信息为空!"),
+
+
+ DEPART_TYPE_EMPTY(9020,"部门类型为空 "),
+
+ DEPART_NOT_FOUND(9020,"用户部门不能为空 "),
+
+ USER_MUST_INSTRUCTOR(2005,"用户角色只能为辅导员"),
+
+
+ /***********************************通讯录相关 start***************************************/
+ SYNC_TYPE_EMPTY(2, "同步通讯录类型不存在!"),
+ SYNC_TYPE_TASK_EMPTY(2, "同步通讯录存储过程类型不存在!"),
+ ES_INDEX_RETURN_EMPTY(2404, "同步索引未进行配置,请进行配置!"),
+ SYNC_TEACHER_INDEX_NOT_EXIST(1005,"同步教师数据索引不存在"),
+ SYNC_STUDENT_INDEX_NOT_EXIST(1006,"同步学生数据索引不存在"),
+ SYNC_FACULTY_INDEX_NOT_EXIST(1007,"同步学院数据索引不存在"),
+ SYNC_CLASS_INDEX_NOT_EXIST(1008,"同步班级数据索引不存在"),
+ SYNC_TEACHER_CLASS_INDEX_NOT_EXIST(1009,"同步带班数据索引不存在"),
+ ES_SERVER_ERROR(1010,"网络异常/连接ES平台异常"),
+
+ OBJECT_FIELD_NOT_VALID(1011,"数据不合法"),
+
+ OBJECT_FIELD_FACULTY_NOT_VALID(1012,"学院数据不合法"),
+ OBJECT_FIELD_CLASS_NOT_VALID(1013,"班级数据不合法"),
+ OBJECT_FIELD_ACCOUNT_NOT_VALID(1014,"教师工号数据不合法"),
+ OBJECT_FIELD_PARENT_CODE_NOT_VALID(1015,"父类编码数据不合法"),
+
+
+
+ /***********************************通讯录相关 end***************************************/
+
+
+ /***********************************预警子系统 start***************************************/
+
+ ALERT_RULE_NOT_EXIST(100101,"预警规则不存在"),
+ NOTIFY_CONFIG_NOT_FOUND(100102, "提醒配置信息未找到"),
+ TIMER_CRON_ERROR(100103, "定时设置不合法,请检查配置"),
+ FORM_NOT_EXIST(100104, "自定义表单不存在,请联系管理员"),
+
+ OPEN_TAG_NOT_EXIST(9004, "未找到合法的预警模型"),
+
+ SYNC_RESULT_EMPTY(9004, "预警同步结果为空"),
+
+
+
+ /***********************************预警子系统 end***************************************/
+
+
+
+ COMPONENT_NOT_FOUND(3005,"组件不存在"),
+
+ /***********************************陪伴子系统 start***************************************/
+
+ /** 陪伴主题 **/
+ ACMP_THEME_NOT_EXIST(2002,"陪伴主题不存在"),
+
+ ACMP_THEME_DELETE(2003,"已产生对应陪伴数据,如需删除,请联系管理员"),
+
+ ACMP_THEME_REPEAT(2004,"主题名称重复"),
+
+ /** 陪伴选项分类 **/
+ ACMP_TYPE_REPEAT(2005,"选项分类名称重复"),
+
+ ACMP_TYPE_DELETE(2003,"分类已有陪伴选项关联,如需删除,请联系管理员"),
+
+ ACMP_TYPE_NOT_EXIST(2002,"选项分类不存在"),
+
+ /** 陪伴中心**/
+
+ ACMP_DATA_NOT_EXIST(2006,"陪伴数据不存在"),
+
+ ACMP_DATA_NOT_SUPPORT_UPLOAD(2007,"该陪伴数据不支持上传"),
+
+ ACMP_SETTING_DISPOSE_NOT_EXIST(2004,"未设置陪伴方式,请联系管理员"),
+
+ ACMP_SYSTEM_NOT_EXIST(2002,"陪伴体系不存在"),
+ ACMP_SYSTEM_NAME_REPEAT(2005,"选项体系名称重复"),
+
+
+ ACMP_SYSTEM_CANT_DELETE(2002,"陪伴体系存在陪伴数据,无法删除"),
+
+
+ ACMP_OPTION_NOT_EXIST(2002,"陪伴选项不存在"),
+
+ ACMP_OPTION_CANT_DELETE(2002,"陪伴选项存在陪伴数据,无法删除"),
+
+ ACMP_OPTION_NAME_REPEAT(2005,"选项选项名称重复"),
+
+
+ ACMP_UPLOAD_FAIL(2006,"陪伴数据上传失败"),
+
+ ACMP_ADD_FAIL(2006,"创建陪伴记录失败"),
+
+
+ ACMP_CONFIG_MISS(2007,"缺少陪伴上报配置"),
+
+ ACMP_ADD_NOT_STUDENT(2008,"一对多陪伴未设置陪伴学生!"),
+
+
+ /***********************************陪伴子系统 end***************************************/
+
+
+ /***********************************关注子系统 start***************************************/
+
+ FOLLOW_STUDENT_NOT_FOLLOWED(100301,"您未关注该学生,无法取消关注"),
+
+ FOLLOW_EXCEL_ERROR(100302,"批量关注Excel格式不正确"),
+
+ /***********************************关注子系统 end***************************************/
+
+
+ /***********************************考核子系统 start***************************************/
+ CHECK_USER_MUST_INSTRUCTOR(2005,"参与考核成员必须为辅导员"),
+ ASSESS_FOLLOW_STUDENT_NOT_FOUND(2005,"未找到关注学生陪伴考核陪伴信息"),
+
+ ASSESS_RECOMMEND_STUDENT_NOT_FOUND(2005,"未找到关注学生陪伴考核陪伴信息"),
+
+ /***********************************考核子系统 end***************************************/
+ MESSAGE_NOT_FOUND(1046,"消息不存在"),
+
+
+ /***********************************学生预约辅导员 start***************************************/
+ RESERVATION_NOT_EXIST(1046,"未找到学生预约记录"),
+ RESERVATION_RULE_NOT_OPEN(1046,"辅导员未开启预约"),
+ RESERVATION_RULE_DAY_RULE_EMPTY(1002,"未找到当天预约内容"),
+ RESERVATION_RULE_DAY_RULE_PERIOD_NOT_FOUND(1002,"未找到当天预约时段,请联系辅导员"),
+ RESERVATION_PERIOD_OVERDUE(1002,"预约时段已过期,请刷新页面"),
+ RESERVATION_USER_REPEATED(1002,"请勿重复预约"),
+
+ RESERVATION_CANCEL_USER_NO_PERMISSION(1002,"非本人无权限撤回预约"),
+
+ RESERVATION_INSTRUCTOR_NOT_EXIST(1002,"未找到辅导员信息,请联系管理员"),
+
+ RESERVATION_STUDENT_NOT_EXIST(1002,"未找到学生,请联系管理员"),
+
+
+ RESERVATION_FINISH_COMMENT_NOT_EXIST(1046,"预约沟通结果不能为空"),
+
+
+ /***********************************学生预约辅导员 end***************************************/
+
+
+ /***********************************我爱记学生子系统 start***************************************/
+
+ ASSESS_CONFIG_NOT_EXIST(2002,"考试配置不存在"),
+ ASSESS_CONFIG_NAME_EXIST(2002,"存在名称重复的考试,请修改考试名称"),
+
+ ASSESS_QUESTION_CONFIG_NOT_EXIST(2002,"考试题库配置不存在,请联系管理员"),
+ ASSESS_QUESTION_EMPTY_ERROR(2002,"考试未设置题目,请检查考试题目配置"),
+ ASSESS_QUESTION_CONFIG_ERROR(2002,"题库配置错误,请检查题库是否配置了不存在的学生属性"),
+ ASSESS_EXAM_RECORD_NOT_FOUND(2002,"您已提交本次考试结果,请勿重复提交"),
+ ASSESS_TRAIN_RECORD_NOT_FOUND(2002,"很抱歉,未找到您的本次训练成绩,请联系管理员"),
+
+ EXAM_QUESTION_OVER_LIMIT(2002,"单场考试至多500道题目"),
+
+ ASSESS_RECORD_DELETE_ERROR(2002,"考试记录已删除,无法再次删除"),
+ ASSESS_RECORD_LEVEL_EXISTS(2002,"考试成绩已存在,不能再次提交答卷"),
+ ASSESS_CONFIG_NOT_STU(2002,"本次考试未找到符合条件的学生信息,请联系管理员"),
+ ASSESS_CONFIG_NOT_START(2002,"未到考试时间,无法参加考试"),
+ ASSESS_CONFIG_HAS_FINISHED(2002,"考试已结束"),
+ ASSESS_CONFIG_NOT_TIMES(2002,"您已经参加过本次考试,请勿重复考试"),
+ ASSESS_CONFIG_NOT_INSTRS(2002,"无考试权限:不在考试名单中,请联系管理员"),
+ ASSESS_RECORD_OVER_LIMIT(2002,"您目前仍有一条正在考试的记录,请先提交该考试成绩"),
+ ASSESS_RECORD_PERMISSION_ERROR(2002,"您没有查看此记录的权限"),
+ ASSESS_QUESTION_NOT_EXIST(2002,"未找到训练题目"),
+
+ ASSESS_EXAM_HAS_RECORD(2002,"当前考试有考生正在考试,请勿操作"),
+
+ ASSESS_RECORD_NOT_FOUND(2002,"该数据已被删除或者您没有查看该数据的权限"),
+
+ TEACHER_NOT_FOUND(2002,"没有教师数据权限"),
+
+ DATASOURCE_NOT_EXIST(1003,"未配置数据源,请联系管理员"),
+
+ DATASOURCE_DEFAULT_NOT_EXIST(1003,"未配置默认数据源,请联系管理员"),
+
+
+ /***********************************我爱记学生子系统 end***************************************/
+
+
+ /***********************************公权力监督 start***************************************/
+
+ PORTRAIT_TITLE_REPEAT(2006,"画像名称重复"),
+
+ PORTRAIT_NOT_EXIST(2007,"画像不存在"),
+
+ PORTRAIT_DELETE(2003,"已有对应的组件配置,如需删除,请联系管理员"),
+
+ TEMPLATE_TITLE_REPEAT(2008,"模板名称重复"),
+ TEMPLATE_NOT_EXIST(2009,"模板不存在"),
+
+ PORTRAIT_DASHBOARD_NOT_EXIST(2007,"数据看板不存在"),
+
+ DATACORRECTION_SETTING_NOT_FOUND(1029,"数据纠错表单地址不存在"),
+ DATACOLLECTION_SETTING_NOT_FOUND(1029,"数据采集表单地址不存在"),
+
+ PORTRAIT_EDIT_USER_NOT_PERMISSION(1029,"用户无权限编辑画像"),
+ PORTRAIT_DELETE_USER_NOT_PERMISSION(1029,"用户无权限删除画像"),
+ PORTRAIT_VIEW_USER_NOT_PERMISSION(1029,"用户无权限查看画像"),
+
+ DASHBOARD_EDIT_USER_NOT_PERMISSION(1029,"用户无权限编辑数据看板"),
+
+ DASHBOARD_DELETE_USER_NOT_PERMISSION(1029,"用户无权限删除数据看板"),
+ DASHBOARD_VIEW_USER_NOT_PERMISSION(1029,"用户无权限查看数据看板"),
+
+ VISIT_CODE_IS_EMPTY(1029,"公开访问码为空"),
+
+ VISIT_CODE_IS_NOT_CORRECT(1029,"访问码不正确"),
+
+ PORTRAIT_NOT_RELEASE(1029,"画像未发布,请联系管理员"),
+
+ /***********************************公权力监督 end***************************************/
+
+ //region 进度模块错误
+ TASK_RUNNING(3000,"当前任务正在运行中"),
+ TASK_NOT_RUNNING(3001,"任务不处于运行状态"),
+
+ TASK_NAME_NOT_NULL(3002,"任务名称不能为空"),
+ //endregion
+
+ //region 画像模块相关错误码
+
+ ES_CLIENT_INIT_ERROR(10000,"es数据源链接失败"),
+ ES_CLIENT_ERROR(10001,"es连接错误"),
+
+
+ PROJECT_NOT_EXIST(1029,"科研项目未找到"),
+
+ PROJECT_ALERT_EMPTY(2023,"科研项目数据为空"),
+
+ OBJECT_SCHEMA_NOT_FOUND(2001,"数据接入未设置"),
+
+ PROJECT_SQL_NOT_CONFIG(2002,"查询语句未配置"),
+
+
+
+ ES_INDEX_NOT_EXIST(10001,"未找到数据盒,请检查数据盒配置"),
+
+ //endregion
+ ;
+
+
+ private Integer code;
+ private String message;
+
+ WorkflowResultCode(Integer code, String message){
+ this.code = code;
+ this.message = message;
+ }
+
+ public Integer code() {
+ return code;
+ }
+
+ public String message() {
+ return message;
+ }
+
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowSuccessResponseData.java b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowSuccessResponseData.java
new file mode 100644
index 0000000..af1318d
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/response/WorkflowSuccessResponseData.java
@@ -0,0 +1,44 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.response;
+
+/**
+ * 成功响应结果
+ *
+ */
+public class WorkflowSuccessResponseData extends WorkflowResponseData {
+
+ public WorkflowSuccessResponseData() {
+ super(true, DEFAULT_SUCCESS_CODE, DEFAULT_SUCCESS_MESSAGE, null);
+ }
+
+ public WorkflowSuccessResponseData(Object object) {
+ super(true, DEFAULT_SUCCESS_CODE, DEFAULT_SUCCESS_MESSAGE, object);
+ }
+
+ public WorkflowSuccessResponseData(Integer code, String message, Object object) {
+ super(true, code, message, object);
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/util/HttpServletUtil.java b/dk-common/common-workflow/src/main/java/org/dromara/common/util/HttpServletUtil.java
new file mode 100644
index 0000000..8f9bfa8
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/util/HttpServletUtil.java
@@ -0,0 +1,68 @@
+/*
+Copyright [2020] [https://www.stylefeng.cn]
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Guns采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
+
+1.请不要删除和修改根目录下的LICENSE文件。
+2.请不要删除和修改Guns源码头部的版权声明。
+3.请保留源码和相关描述文件的项目出处,作者声明等。
+4.分发源码时候,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/stylefeng/guns-separation
+6.若您的项目无法满足以上几点,可申请商业授权,获取Guns商业授权许可,请在官网购买授权,地址为 https://www.stylefeng.cn
+ */
+package org.dromara.common.util;
+
+
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
+import org.dromara.common.Exception.ServiceException;
+import org.dromara.common.response.WorkflowResultCode;
+import org.springframework.web.context.request.RequestContextHolder;
+import org.springframework.web.context.request.ServletRequestAttributes;
+
+
+/**
+ * HttpServlet工具类,获取当前request和response
+ *
+
+ */
+public class HttpServletUtil {
+
+ /**
+ * 获取当前请求的request对象
+ *
+ */
+ public static HttpServletRequest getRequest() {
+ ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
+ if (requestAttributes == null) {
+ throw new ServiceException(WorkflowResultCode.PARAM_IS_BLANK);
+ } else {
+ return requestAttributes.getRequest();
+ }
+ }
+
+ /**
+ * 获取当前请求的response对象
+ *
+ */
+ public static HttpServletResponse getResponse() {
+ ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
+ if (requestAttributes == null) {
+ throw new ServiceException(WorkflowResultCode.PARAM_IS_BLANK);
+ } else {
+ return requestAttributes.getResponse();
+ }
+ }
+}
diff --git a/dk-common/common-workflow/src/main/java/org/dromara/common/util/JsonUtil.java b/dk-common/common-workflow/src/main/java/org/dromara/common/util/JsonUtil.java
new file mode 100644
index 0000000..64e356b
--- /dev/null
+++ b/dk-common/common-workflow/src/main/java/org/dromara/common/util/JsonUtil.java
@@ -0,0 +1,128 @@
+package org.dromara.common.util;
+
+import cn.hutool.core.util.ObjectUtil;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.type.TypeReference;
+import com.fasterxml.jackson.databind.JavaType;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.commons.lang3.StringUtils;
+
+import java.lang.reflect.Field;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 定义响应结构
+ */
+public class JsonUtil {
+
+ private static ObjectMapper MAPPER;
+ static{
+ MAPPER=new ObjectMapper();
+ }
+
+ /**
+ * 将对象转换成json字符串。
+ * Title: pojoToJson
+ * Description:
+ * @param data
+ * @return
+ */
+ public static String toJson(Object data){
+ String string = null;
+ try {
+ string = MAPPER.writeValueAsString(data);
+ if(StringUtils.isEmpty(string)){
+ return null;
+ }
+ return string;
+ } catch (JsonProcessingException e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
+
+ /**
+ * 将json结果集转化为对象
+ *
+ * @param jsonData json数据
+ * @return
+ */
+ public static T jsonToPojo(String jsonData, Class beanType) {
+ try {
+ T t = MAPPER.readValue(jsonData, beanType);
+ return t;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ /**
+ * 将json数据转换成pojo对象list
+ * Title: jsonToList
+ * Description:
+ * @param jsonData
+ * @param beanType
+ * @return
+ */
+ public static List jsonToList(String jsonData, Class beanType) {
+ JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType);
+ try {
+ List list = MAPPER.readValue(jsonData, javaType);
+ return list;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+
+ /**
+ * 将Object对象里面的属性和值转化成Map对象
+ *
+ * @param obj
+ * @return
+ * @throws IllegalAccessException
+ */
+ public static Map objectToMap(Object obj){
+ try {
+ Map map = new HashMap();
+ Class> clazz = obj.getClass();
+ for (Field field : clazz.getDeclaredFields()) {
+ field.setAccessible(true);
+ String fieldName = field.getName();
+ if(ObjectUtil.isNotEmpty(field.get(obj))){
+ Object value = field.get(obj);
+ map.put(fieldName, value);
+ }else{
+ map.put(fieldName, "");
+ }
+ }
+ return map;
+ } catch (Exception e) {
+ e.printStackTrace();
+ return null;
+ }
+ }
+
+ public static Map jsonToMap(String json){
+ try {
+ return MAPPER.readValue(json, new TypeReference