Skip to content

Commit

Permalink
metrics: fix wrong bucket name of coprocessor cache (#22454) (#22617)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored May 12, 2021
1 parent df65987 commit 371333c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infoschema/metric_table_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,7 @@ var MetricTableMap = map[string]MetricTableDef{
},
"tidb_distsql_copr_cache": {
Comment: "The quantile of TiDB distsql coprocessor cache",
PromQL: "histogram_quantile($QUANTILE, sum(rate(tidb_distsql_copr_cache_buckets{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (type,instance))",
PromQL: "histogram_quantile($QUANTILE, sum(rate(tidb_distsql_copr_cache_bucket{$LABEL_CONDITIONS}[$RANGE_DURATION])) by (type,instance))",
Labels: []string{"instance", "type"},
Quantile: 0.95,
},
Expand Down
2 changes: 1 addition & 1 deletion metrics/grafana/tidb.json
Original file line number Diff line number Diff line change
Expand Up @@ -6070,7 +6070,7 @@
"steppedLine": false,
"targets": [
{
"expr": "histogram_quantile(1, sum(rate(tidb_distsql_copr_cache_buckets{tidb_cluster=\"$tidb_cluster\"}[1m])) by (type))",
"expr": "histogram_quantile(1, sum(rate(tidb_distsql_copr_cache_bucket{tidb_cluster=\"$tidb_cluster\"}[1m])) by (type))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{type}}",
Expand Down

0 comments on commit 371333c

Please sign in to comment.