pingcap / pingcap/tidb

Add StmtType to error count

Open
#46,409 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement
for error rate alerts, we are currently using the query
```
sum(rate(tidb_server_query_total{tidb_cluster="xxx", result="Error"}[1m])) * 100 / sum(rate(tidb_server_query_total{tidb_cluster="xxx"}[1m])) > #{threshold}
```

however, this is a total error rate for all types of queries. We want to breakdown error rate by query types eg. (Select, Delete, Update, Insert … )
would be great to add query types into the metric `tidb_server_query_total`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.