vitess icon indicating copy to clipboard operation
vitess copied to clipboard

Feature Request: Vitess provide a vtgate queries metric by tablet type

Open jwangace opened this issue 1 year ago • 2 comments

Feature Description

Vtgate has metrics:

vtgate_queries_processed
vtgate_queries_routed

But those metrics does not distinguish queries by tablet type(RRIMARY, REPLICA), it would be great to have break down metrics, for example:

vtgate_queries_processed_primary
vtgate_queries_processed_replica
vtgate_queries_routed_primary
vtgate_queries_routed_replica

Use Case(s)

This will provide user better ideas of queries to which type of tables are sent.

jwangace avatar Jul 15 '24 20:07 jwangace

/cc @vitessio/query-serving

mattlord avatar Jul 15 '24 22:07 mattlord

If we decide to do this, we should add a dimension to vtgate_queries_processed to represent tablet_type. We would not want to duplicate the metric for every serving tablet type of which we have more than two.

deepthi avatar Jul 16 '24 18:07 deepthi