| { |
| "__inputs": [ |
| { |
| "name": "DS_PROMETHEUS", |
| "label": "Prometheus", |
| "description": "", |
| "type": "datasource", |
| "pluginId": "prometheus", |
| "pluginName": "Prometheus" |
| } |
| ], |
| "__elements": [], |
| "__requires": [ |
| { |
| "type": "grafana", |
| "id": "grafana", |
| "name": "Grafana", |
| "version": "8.4.4" |
| }, |
| { |
| "type": "panel", |
| "id": "heatmap", |
| "name": "Heatmap", |
| "version": "" |
| }, |
| { |
| "type": "datasource", |
| "id": "prometheus", |
| "name": "Prometheus", |
| "version": "1.0.0" |
| }, |
| { |
| "type": "panel", |
| "id": "timeseries", |
| "name": "Time series", |
| "version": "" |
| } |
| ], |
| "annotations": { |
| "list": [ |
| { |
| "builtIn": 1, |
| "datasource": "-- 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": null, |
| "links": [], |
| "liveNow": false, |
| "panels": [ |
| { |
| "description": "Total number of reconciliation.", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "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": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 11, |
| "x": 0, |
| "y": 0 |
| }, |
| "id": 14, |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom" |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "sum(rate(controller_runtime_reconcile_total{app=\"shardingsphere-operator\", controller=\"shardingsphereproxy\"}[5m])) by (instance, controller, result)", |
| "interval": "", |
| "legendFormat": "{{ instance }}-{{ result}}", |
| "refId": "A" |
| } |
| ], |
| "title": "Reconcile Total [Contorller=shardingsphereproxy][Last 5min]", |
| "type": "timeseries" |
| }, |
| { |
| "description": "Total number of reconciliation.", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "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": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 11, |
| "x": 11, |
| "y": 0 |
| }, |
| "id": 2, |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom" |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "sum(rate(controller_runtime_reconcile_total{app=\"shardingsphere-operator\", controller=\"shardingsphereproxyserverconfig\"}[5m])) by (instance, controller, result)", |
| "interval": "", |
| "legendFormat": "{{ instance }}-{{ result}}", |
| "refId": "A" |
| } |
| ], |
| "title": "Reconcile Total [Contorller=shardingsphereproxyserverconfig][Last 5min]", |
| "type": "timeseries" |
| }, |
| { |
| "description": "Seconds an item stays in workqueue before being requested.", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "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": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 11, |
| "x": 0, |
| "y": 8 |
| }, |
| "id": 6, |
| "options": { |
| "legend": { |
| "calcs": [ |
| "max", |
| "min", |
| "mean" |
| ], |
| "displayMode": "table", |
| "placement": "bottom" |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "histogram_quantile(0.50, sum(rate(workqueue_queue_duration_seconds_bucket{app=\"shardingsphere-operator\"}[5m])) by (instance, name, le))", |
| "interval": "", |
| "legendFormat": "{{ instance }}-{{ name }}", |
| "refId": "A" |
| } |
| ], |
| "title": "Seconds for item stays in workqueue (P50)", |
| "type": "timeseries" |
| }, |
| { |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "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": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 7, |
| "w": 13, |
| "x": 11, |
| "y": 8 |
| }, |
| "id": 8, |
| "options": { |
| "legend": { |
| "calcs": [ |
| "max", |
| "min", |
| "mean" |
| ], |
| "displayMode": "table", |
| "placement": "bottom" |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "histogram_quantile(0.50, sum(rate(workqueue_work_duration_seconds_bucket{app=\"shardingsphere-operator\"}[5m])) by (instance, name, le))", |
| "interval": "", |
| "legendFormat": "{{ instance }}-{{ name }}", |
| "refId": "A" |
| } |
| ], |
| "title": "Seconds processing item from workqueue [P50]", |
| "type": "timeseries" |
| }, |
| { |
| "description": "Total number of reconciliation errors.", |
| "fieldConfig": { |
| "defaults": { |
| "color": { |
| "mode": "palette-classic" |
| }, |
| "custom": { |
| "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": "auto", |
| "spanNulls": false, |
| "stacking": { |
| "group": "A", |
| "mode": "none" |
| }, |
| "thresholdsStyle": { |
| "mode": "off" |
| } |
| }, |
| "mappings": [], |
| "thresholds": { |
| "mode": "absolute", |
| "steps": [ |
| { |
| "color": "green", |
| "value": null |
| }, |
| { |
| "color": "red", |
| "value": 80 |
| } |
| ] |
| } |
| }, |
| "overrides": [] |
| }, |
| "gridPos": { |
| "h": 8, |
| "w": 24, |
| "x": 0, |
| "y": 15 |
| }, |
| "id": 4, |
| "options": { |
| "legend": { |
| "calcs": [], |
| "displayMode": "list", |
| "placement": "bottom" |
| }, |
| "tooltip": { |
| "mode": "single", |
| "sort": "none" |
| } |
| }, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "sum(rate(controller_runtime_reconcile_errors_total{app=\"shardingsphere-operator\"}[5m])) by (instance, controller)", |
| "interval": "", |
| "legendFormat": "{{ instance }}-{{controller}}", |
| "refId": "A" |
| } |
| ], |
| "title": "Reconcile Errors Total [Last 5min]", |
| "type": "timeseries" |
| }, |
| { |
| "cards": {}, |
| "color": { |
| "cardColor": "#b4ff00", |
| "colorScale": "sqrt", |
| "colorScheme": "interpolateOranges", |
| "exponent": 0.5, |
| "mode": "spectrum" |
| }, |
| "dataFormat": "tsbuckets", |
| "gridPos": { |
| "h": 8, |
| "w": 24, |
| "x": 0, |
| "y": 23 |
| }, |
| "heatmap": {}, |
| "hideZeroBuckets": false, |
| "highlightCards": true, |
| "id": 10, |
| "legend": { |
| "show": true |
| }, |
| "reverseYBuckets": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "rate(controller_runtime_reconcile_time_seconds_bucket{app=\"shardingsphere-operator\", controller=\"shardingsphereproxy\"}[5m])", |
| "interval": "", |
| "legendFormat": "{{le}}", |
| "refId": "A" |
| } |
| ], |
| "title": "Reconcile Time Buckets [Controller=shardingsphereproxy]", |
| "tooltip": { |
| "show": true, |
| "showHistogram": true |
| }, |
| "type": "heatmap", |
| "xAxis": { |
| "show": true |
| }, |
| "yAxis": { |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| }, |
| "yBucketBound": "auto" |
| }, |
| { |
| "cards": {}, |
| "color": { |
| "cardColor": "#b4ff00", |
| "colorScale": "sqrt", |
| "colorScheme": "interpolateOranges", |
| "exponent": 0.5, |
| "mode": "spectrum" |
| }, |
| "dataFormat": "tsbuckets", |
| "gridPos": { |
| "h": 7, |
| "w": 24, |
| "x": 0, |
| "y": 31 |
| }, |
| "heatmap": {}, |
| "hideZeroBuckets": false, |
| "highlightCards": true, |
| "id": 12, |
| "legend": { |
| "show": true |
| }, |
| "reverseYBuckets": false, |
| "targets": [ |
| { |
| "datasource": { |
| "type": "prometheus", |
| "uid": "${DS_PROMETHEUS}" |
| }, |
| "exemplar": true, |
| "expr": "rate(controller_runtime_reconcile_time_seconds_bucket{app=\"shardingsphere-operator\", controller=\"shardingsphereproxyserverconfig\"}[5m])", |
| "interval": "", |
| "legendFormat": "{{le}}", |
| "refId": "A" |
| } |
| ], |
| "title": "Reconcile Time Buckets [Controller=shardingsphereproxyserverconfig]", |
| "tooltip": { |
| "show": true, |
| "showHistogram": true |
| }, |
| "type": "heatmap", |
| "xAxis": { |
| "show": true |
| }, |
| "yAxis": { |
| "format": "short", |
| "logBase": 1, |
| "show": true |
| }, |
| "yBucketBound": "auto" |
| } |
| ], |
| "refresh": false, |
| "schemaVersion": 35, |
| "style": "dark", |
| "tags": [], |
| "templating": { |
| "list": [] |
| }, |
| "time": { |
| "from": "now-30m", |
| "to": "now" |
| }, |
| "timepicker": {}, |
| "timezone": "", |
| "title": "ShardingSphere-Operator Runtime dashboard", |
| "uid": "keOHCKp4z", |
| "version": 7, |
| "weekStart": "" |
| } |