| { |
| "annotations": { |
| "list": [ |
| { |
| "builtIn": 1, |
| "datasource": { |
| "type": "grafana", |
| "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" |
| } |
| ] |
| }, |
| "editable": true, |
| "fiscalYearStartMonth": 0, |
| "graphTooltip": 0, |
| "id": 3, |
| "links": [], |
| "liveNow": false, |
| "panels": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "always", |
| "spanNulls": true, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "ms" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 6, |
| "x": 0, |
| "y": 0 |
| }, |
| "id": 4, |
| "interval": "1m", |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "editorMode": "code", |
| "expr": "database_access_resp_time{service='$service', layer='$layer'}", |
| "format": "time_series", |
| "legendFormat": "__auto", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "Database Avg Response Time", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "description": "", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "always", |
| "spanNulls": true, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "max": 100, |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "percent" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 6, |
| "x": 6, |
| "y": 0 |
| }, |
| "id": 6, |
| "interval": "1m", |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "editorMode": "code", |
| "expr": "database_access_sla{service='$service', layer='$layer'} / 100", |
| "format": "time_series", |
| "legendFormat": "__auto", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "Database Access Successful Rate ", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "description": "", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "always", |
| "spanNulls": true, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "cpm" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 6, |
| "x": 12, |
| "y": 0 |
| }, |
| "id": 8, |
| "interval": "1m", |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "editorMode": "code", |
| "expr": "database_access_cpm{service='$service', layer='$layer'}", |
| "format": "time_series", |
| "legendFormat": "__auto", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "Database Traffic", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "axisCenteredZero": false, |
| "axisColorMode": "text", |
| "axisLabel": "", |
| "axisPlacement": "auto", |
| "barAlignment": 0, |
| "drawStyle": "line", |
| "fillOpacity": 0, |
| "gradientMode": "none", |
| "hideFrom": { |
| "legend": false, |
| "tooltip": false, |
| "viz": false |
| }, |
| "lineInterpolation": "linear", |
| "lineWidth": 1, |
| "pointSize": 5, |
| "scaleDistribution": { |
| "type": "linear" |
| }, |
| "showPoints": "always", |
| "spanNulls": true, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| }, |
| "unit": "ms" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 6, |
| "x": 18, |
| "y": 0 |
| }, |
| "id": 10, |
| "interval": "1m", |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom", |
| "showLegend": true |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "editorMode": "code", |
| "expr": "database_access_percentile{service='$service', layer='$layer', labels='0,1,2,3,4', relabels='P50,P75,P90,P95,P99'}", |
| "format": "time_series", |
| "legendFormat": "{{label}}", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "Database Access Latency Percentile", |
| "type": "timeseries" |
| }, |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "thresholds" |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| } |
| ] |
| }, |
| "unit": "ms" |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 18, |
| "w": 24, |
| "x": 0, |
| "y": 7 |
| }, |
| "id": 2, |
| "interval": "1m", |
| "options": { |
| "displayMode": "lcd", |
| "minVizHeight": 10, |
| "minVizWidth": 0, |
| "orientation": "horizontal", |
| "reduceOptions": { |
| "calcs": [ |
| "lastNotNull" |
| ], |
| "fields": "", |
| "values": false |
| }, |
| "showUnfilled": true |
| }, |
| "pluginVersion": "9.1.0", |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "editorMode": "code", |
| "expr": "top_n_database_statement{parent_service='$service', layer='$layer', top_n='10', order='DES'}", |
| "legendFormat": "__auto", |
| "range": true, |
| "refId": "A" |
| } |
| ], |
| "title": "Slow Statements ", |
| "transformations": [ |
| { |
| "id": "labelsToFields", |
| "options": { |
| "keepLabels": [ |
| "record" |
| ], |
| "valueLabel": "record" |
| } |
| } |
| ], |
| "type": "bargauge" |
| } |
| ], |
| "schemaVersion": 37, |
| "style": "dark", |
| "tags": [], |
| "templating": { |
| "list": [ |
| { |
| "hide": 2, |
| "name": "layer", |
| "query": "VIRTUAL_DATABASE", |
| "skipUrlSync": false, |
| "type": "constant" |
| }, |
| { |
| "current": { |
| "selected": false, |
| "text": "localhost:-1", |
| "value": "localhost:-1" |
| }, |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_SkyWalking}" |
| }, |
| "definition": "label_values(service_traffic{layer='$layer'}, service)", |
| "hide": 0, |
| "includeAll": false, |
| "label": "Service", |
| "multi": false, |
| "name": "service", |
| "options": [], |
| "query": { |
| "query": "label_values(service_traffic{layer='$layer'}, service)", |
| "refId": "StandardVariableQuery" |
| }, |
| "refresh": 1, |
| "regex": "", |
| "skipUrlSync": false, |
| "sort": 0, |
| "type": "query" |
| }, |
| { |
| "current": { |
| "selected": false, |
| "text": "SkyWalking", |
| "value": "SkyWalking" |
| }, |
| "hide": 2, |
| "includeAll": false, |
| "multi": false, |
| "name": "DS_SkyWalking", |
| "options": [], |
| "query": "prometheus", |
| "refresh": 1, |
| "regex": "SkyWalking", |
| "skipUrlSync": false, |
| "type": "datasource" |
| } |
| ] |
| }, |
| "time": { |
| "from": "now-15m", |
| "to": "now" |
| }, |
| "timepicker": {}, |
| "timezone": "", |
| "title": "Virtual-Database", |
| "uid": "VirtualDatabase", |
| "version": 3, |
| "weekStart": "" |
| } |