You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently TiDB only supports metrics of the whole TiDB cluster or single TiDB instance. Database or table metrics are missing. For critical metrics like QPS, latency, errors, a more detailed, per-table and per-database metrics is needed.
The technical implementation needs to be further investigated. A possible solution can be using Prometheus labels. The corresponding label in memory metrics need to be deleted when table or database is deleted. Notice that there might be a lot of databases and tables and attaching metrics for each one may affect performance, so that it may not be suitable to adapt all metrics. Also histograms and multi-label metrics need to be very carefully considered, since they notably amplify the number of metrics. Another good idea can be allowing users to config what tables and databases are needed.
The new metrics should be added to the Grafana monitor.
Notice that TiDB already have a similar feature: pingcap/tidb#9151 However it may lead to memory leaks due to always keeping database names in the memory, as well as not work well when database numbers are huge. The new implementation could refine and improve it.
Category
Feature
Usability
Value
Many customers use a single TiDB cluster to serve multiple & hybrid payloads (in different databases). This helps them better identify problems or running status of each payload.
Score: 4
Workload Estimation
15 Person Day
The text was updated successfully, but these errors were encountered:
Description
Related project: TiDB
Currently TiDB only supports metrics of the whole TiDB cluster or single TiDB instance. Database or table metrics are missing. For critical metrics like QPS, latency, errors, a more detailed, per-table and per-database metrics is needed.
The technical implementation needs to be further investigated. A possible solution can be using Prometheus labels. The corresponding label in memory metrics need to be deleted when table or database is deleted. Notice that there might be a lot of databases and tables and attaching metrics for each one may affect performance, so that it may not be suitable to adapt all metrics. Also histograms and multi-label metrics need to be very carefully considered, since they notably amplify the number of metrics. Another good idea can be allowing users to config what tables and databases are needed.
The new metrics should be added to the Grafana monitor.
Notice that TiDB already have a similar feature: pingcap/tidb#9151 However it may lead to memory leaks due to always keeping database names in the memory, as well as not work well when database numbers are huge. The new implementation could refine and improve it.
Category
Value
Many customers use a single TiDB cluster to serve multiple & hybrid payloads (in different databases). This helps them better identify problems or running status of each payload.
Workload Estimation
15 Person Day
The text was updated successfully, but these errors were encountered: