diff --git a/monitor-snapshot/master/ansible-monitor.tar.gz b/monitor-snapshot/master/ansible-monitor.tar.gz index 1ad33c57..7b8d8402 100644 Binary files a/monitor-snapshot/master/ansible-monitor.tar.gz and b/monitor-snapshot/master/ansible-monitor.tar.gz differ diff --git a/monitor-snapshot/master/operator/dashboards/tiproxy_summary.json b/monitor-snapshot/master/operator/dashboards/tiproxy_summary.json index 2baaa69f..b77797b7 100644 --- a/monitor-snapshot/master/operator/dashboards/tiproxy_summary.json +++ b/monitor-snapshot/master/operator/dashboards/tiproxy_summary.json @@ -1764,6 +1764,92 @@ "show": true } ] + }, + { + "aliasColors": { }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "tidb-cluster", + "description": "Number of pending session migrations.", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 24, + "legend": { + "alignAsTable": false, + "avg": false, + "current": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sideWidth": null, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [ ], + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [ ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "label_replace(label_replace(tiproxy_balance_pending_migrate, \"from\", \"$1\", \"from\", \"(.+-tidb-[0-9]+).*peer.*.svc.*\"), \"to\", \"$1\", \"to\", \"(.+-tidb-[0-9]+).*peer.*.svc.*\")", + "format": "time_series", + "intervalFactor": 2, + "legendFormat": "{{instance}}: {{from}} => {{to}}", + "refId": "A" + } + ], + "thresholds": [ ], + "timeFrom": null, + "timeShift": null, + "title": "Pending Migration Count", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ ] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 2, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ] } ], "repeat": null, @@ -1783,7 +1869,7 @@ "x": 0, "y": 0 }, - "id": 24, + "id": 25, "panels": [ { "aliasColors": { }, @@ -1800,7 +1886,7 @@ "x": 0, "y": 0 }, - "id": 25, + "id": 26, "legend": { "alignAsTable": false, "avg": false, @@ -1900,7 +1986,7 @@ "x": 12, "y": 0 }, - "id": 26, + "id": 27, "legend": { "alignAsTable": false, "avg": false, @@ -1986,7 +2072,7 @@ "x": 0, "y": 0 }, - "id": 27, + "id": 28, "legend": { "alignAsTable": false, "avg": false, @@ -2072,7 +2158,7 @@ "x": 12, "y": 0 }, - "id": 28, + "id": 29, "legend": { "alignAsTable": false, "avg": false, @@ -2161,7 +2247,7 @@ "x": 0, "y": 0 }, - "id": 29, + "id": 30, "panels": [ { "aliasColors": { }, @@ -2178,7 +2264,7 @@ "x": 0, "y": 0 }, - "id": 30, + "id": 31, "legend": { "alignAsTable": false, "avg": false, @@ -2264,7 +2350,7 @@ "x": 12, "y": 0 }, - "id": 31, + "id": 32, "legend": { "alignAsTable": false, "avg": false, @@ -2350,7 +2436,7 @@ "x": 0, "y": 0 }, - "id": 32, + "id": 33, "legend": { "alignAsTable": false, "avg": false, @@ -2436,7 +2522,7 @@ "x": 12, "y": 0 }, - "id": 33, + "id": 34, "legend": { "alignAsTable": false, "avg": false, @@ -2522,7 +2608,7 @@ "x": 0, "y": 0 }, - "id": 34, + "id": 35, "legend": { "alignAsTable": false, "avg": false,