Skip to content

Commit

Permalink
metrics: fix alloc id, current tso and patrol panel (#7961) (#7964)
Browse files Browse the repository at this point in the history
close #7959

Signed-off-by: lhy1024 <[email protected]>

Co-authored-by: lhy1024 <[email protected]>
  • Loading branch information
ti-chi-bot and lhy1024 authored Mar 21, 2024
1 parent 92a303c commit 80748b0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions metrics/grafana/pd.json
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@
"tableColumn": "idalloc",
"targets": [
{
"expr": "max(pd_cluster_id{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"idalloc\"})",
"expr": "pd_cluster_id{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"idalloc\"}!=0",
"format": "time_series",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -2284,7 +2284,7 @@
"tableColumn": "tso",
"targets": [
{
"expr": "max(pd_cluster_tso{type=\"tso\", dc=\"global\"})",
"expr": "pd_cluster_tso{type=\"tso\", dc=\"global\"}!=0",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -2588,7 +2588,7 @@
"tableColumn": "tso",
"targets": [
{
"expr": "max(pd_cluster_tso{type=\"tso\", dc=\"global\"})",
"expr": "pd_cluster_tso{type=\"tso\", dc=\"global\"}!=0",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -7895,6 +7895,7 @@
"targets": [
{
"expr": "pd_checker_patrol_regions_time{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\"} != 0",
"legendFormat": "{{instance}}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
Expand Down Expand Up @@ -8474,14 +8475,14 @@
"refId": "A"
},
{
"expr": "rate(pd_schedule_scatter_operators_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"fail\"}[1m]*60)",
"expr": "rate(pd_schedule_scatter_operators_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"fail\"}[1m])*60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "fail",
"refId": "B"
},
{
"expr": "rate(pd_schedule_scatter_operators_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"success\"}[1m]*60)",
"expr": "rate(pd_schedule_scatter_operators_count{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", type=\"success\"}[1m])*60",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "success",
Expand Down Expand Up @@ -9296,15 +9297,15 @@
"steppedLine": false,
"targets": [
{
"expr": "etcd_mvcc_db_total_size_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=\"pd\"}",
"expr": "etcd_mvcc_db_total_size_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\".*pd.*\"}",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"legendFormat": "{{instance}}-physically-allocated",
"refId": "A"
},
{
"expr": "etcd_mvcc_db_total_size_in_use_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", job=\"pd\"}",
"expr": "etcd_mvcc_db_total_size_in_use_in_bytes{k8s_cluster=\"$k8s_cluster\", tidb_cluster=\"$tidb_cluster\", instance=~\".*pd.*\"}",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
Expand Down

0 comments on commit 80748b0

Please sign in to comment.