Repository: tikv/tikv (language: rust)

Issue:
metrics: raft waterfall's panel is broken
## Bug Report

<img width="1441" alt="Image" src="https://github.com/user-attachments/assets/be9644d5-4126-4dba-a1c4-21f0af70ee68" />

The "count" metrics should align to the right Y-axis.

The following is the original correct one:

<img width="1430" alt="Image" src="https://github.com/user-attachments/assets/cbc13013-6652-4567-b49e-7346fa8fbaa6" />




Discussion / hints:

Fix patch:
diff --git a/metrics/grafana/common.py b/metrics/grafana/common.py
index 371b0762166..58b3424d043 100644
--- a/metrics/grafana/common.py
+++ b/metrics/grafana/common.py
@@ -1117,7 +1117,8 @@ def legend(prefix, labels):
         ],
         series_overrides=[
             series_override(
-                alias="count",
+                # use regex because the real alias is "count ${additional_groupby}"
+                alias="/^count/",
                 fill=2,
                 yaxis=2,
                 zindex=-3,
@@ -1127,7 +1128,8 @@ def legend(prefix, labels):
                 transform_negative_y=True,
             ),
             series_override(
-                alias="avg",
+                # use regex because the real alias is "avg ${additional_groupby}"
+                alias="/^avg/",
                 fill=7,
             ),
         ],
diff --git a/metrics/grafana/tikv_details.json b/metrics/grafana/tikv_details.json
index c630c914cc6..2dce52be854 100644
--- a/metrics/grafana/tikv_details.json
+++ b/metrics/grafana/tikv_details.json
@@ -4378,7 +4378,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -4391,7 +4391,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -5055,7 +5055,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -5068,7 +5068,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -8398,7 +8398,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -8411,7 +8411,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -8704,7 +8704,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -8717,7 +8717,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -9010,7 +9010,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -9023,7 +9023,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -9316,7 +9316,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -9329,7 +9329,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -9622,7 +9622,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -9635,7 +9635,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -9956,7 +9956,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -9969,7 +9969,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -10157,7 +10157,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -10170,7 +10170,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -10358,7 +10358,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -10371,7 +10371,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -14332,7 +14332,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -14345,7 +14345,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -14533,7 +14533,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -14546,7 +14546,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -14734,7 +14734,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -14747,7 +14747,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -14935,7 +14935,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -14948,7 +14948,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -15136,7 +15136,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -15149,7 +15149,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -15337,7 +15337,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -15350,7 +15350,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -15538,7 +15538,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -15551,7 +15551,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -15739,7 +15739,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -15752,7 +15752,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -15940,7 +15940,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -15953,7 +15953,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -16141,7 +16141,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -16154,7 +16154,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -16342,7 +16342,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -16355,7 +16355,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -16543,7 +16543,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -16556,7 +16556,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -16744,7 +16744,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -16757,7 +16757,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -17092,7 +17092,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -17105,7 +17105,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -17398,7 +17398,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -17411,7 +17411,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -17704,7 +17704,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -17717,7 +17717,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -18010,7 +18010,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -18023,7 +18023,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -18316,7 +18316,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -18329,7 +18329,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -18622,7 +18622,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -18635,7 +18635,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -19783,7 +19783,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -19796,7 +19796,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -20089,7 +20089,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -20102,7 +20102,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -20395,7 +20395,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -20408,7 +20408,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -26367,7 +26367,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -26380,7 +26380,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -26879,7 +26879,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -26892,7 +26892,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -27717,7 +27717,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -27730,7 +27730,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -33369,7 +33369,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -33382,7 +33382,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -38748,7 +38748,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -38761,7 +38761,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -40433,7 +40433,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -40446,7 +40446,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -40739,7 +40739,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -40752,7 +40752,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -44828,7 +44828,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -44841,7 +44841,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -45029,7 +45029,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -45042,7 +45042,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -45230,7 +45230,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -45243,7 +45243,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -45621,7 +45621,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -45634,7 +45634,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -45822,7 +45822,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -45835,7 +45835,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -46023,7 +46023,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -46036,7 +46036,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -46224,7 +46224,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -46237,7 +46237,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -46957,7 +46957,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -46970,7 +46970,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -47410,7 +47410,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -47423,7 +47423,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -48010,7 +48010,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -48023,7 +48023,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -48652,7 +48652,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -48665,7 +48665,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -48853,7 +48853,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -48866,7 +48866,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -49054,7 +49054,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -49067,7 +49067,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -49255,7 +49255,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -49268,7 +49268,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -50359,7 +50359,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -50372,7 +50372,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -51106,7 +51106,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -51119,7 +51119,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -51307,7 +51307,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -51320,7 +51320,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -51508,7 +51508,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -51521,7 +51521,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -51929,7 +51929,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -51942,7 +51942,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -53920,7 +53920,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -53933,7 +53933,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -54269,7 +54269,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -54282,7 +54282,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -55240,7 +55240,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -55253,7 +55253,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -64998,7 +64998,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -65011,7 +65011,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -65199,7 +65199,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -65212,7 +65212,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -65962,7 +65962,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -65975,7 +65975,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -74467,7 +74467,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -74480,7 +74480,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -75523,7 +75523,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -75536,7 +75536,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
@@ -76298,7 +76298,7 @@
           "repeatDirection": null,
           "seriesOverrides": [
             {
-              "alias": "count",
+              "alias": "/^count/",
               "bars": false,
               "dashLength": 1,
               "dashes": true,
@@ -76311,7 +76311,7 @@
               "zindex": -3
             },
             {
-              "alias": "avg",
+              "alias": "/^avg/",
               "bars": false,
               "fill": 7,
               "fillBelowTo": null,
diff --git a/metrics/grafana/tikv_details.json.sha256 b/metrics/grafana/tikv_details.json.sha256
index a265e768e7e..a5ff6ce5ff8 100644
--- a/metrics/grafana/tikv_details.json.sha256
+++ b/metrics/grafana/tikv_details.json.sha256
@@ -1,1 +1,1 @@
-cb8f293df9c6a35f210f292e493bcf95571c6dd7be22eaea258fb2edc42b5007  ./metrics/grafana/tikv_details.json
+dfd732bf35b728a8046c76efc340b191d549b5350f19980dfee87abeb38c3f15  ./metrics/grafana/tikv_details.json


Test patch: