metrics: fix compaction pending bytes metrics in fast tune
"steppedLine": false,
"targets": [
{
- "expr": "tikv_engine_pending_compaction_bytes{instance=~\"$instance\", db=\"kv\"}",
+ "expr": "sum(tikv_engine_pending_compaction_bytes{instance=~\"$instance\", db=\"kv\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
"refId": "A"
},
{
- "expr": "sum(rate(tikv_engine_pending_compaction_bytes{instance=~\"$instance\", db=\"raft\"}[1m]))",
+ "expr": "sum(tikv_engine_pending_compaction_bytes{instance=~\"$instance\", db=\"raft\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "pending-bytes-raft",
