From 3d692975b6eb922455eafacb302c83604bb02d49 Mon Sep 17 00:00:00 2001 From: Jason Mo Date: Fri, 22 Jul 2022 10:49:15 +0800 Subject: [PATCH] infoschema: fix PromQL for tidb_distsql_copr_cache --- infoschema/metric_table_def.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infoschema/metric_table_def.go b/infoschema/metric_table_def.go index 7487adadb6168..fed4017286db2 100644 --- a/infoschema/metric_table_def.go +++ b/infoschema/metric_table_def.go @@ -2514,7 +2514,7 @@ var MetricTableMap = map[string]MetricTableDef{ }, "tidb_distsql_copr_cache": { Comment: "The total count of TiDB distsql coprocessor cache", - PromQL: "sum(rate(tidb_distsql_copr_cache{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (type,instance))", + PromQL: "sum(rate(tidb_distsql_copr_cache{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (type,instance)", Labels: []string{"instance", "type"}, }, "tidb_execute_total_count": {