shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Summary Buried point information in Sharding-Metrcis

Open yu199195 opened this issue 6 years ago • 4 comments

All the community friends:

We buried point to Sharding-Proxy,to gather information that can be used。 now,there are several types of information :

name type description
request_total Counter Collect all request
sql_statement Counter Collect the types of SQL , example (SELECT,UPDATE,INSERT...)
channel_count Gauge Collect the number of connections
requests_latency Histogram Collect the request latency time(ms)
sharding_datasource Counter Collect the sql sharding datasource
sharding_table Counter Collect the sql sharding table
transaction Counter Collect the sql transaction
Anything else? You are welcome to join the discussion and contribute your good ideas.

yu199195 avatar May 12 '20 02:05 yu199195

Metrics of HikariDataSource may be useful official link for HikariCP metrics registry

SanmuWangZJU avatar May 12 '20 08:05 SanmuWangZJU

@SanmuWangZJU our metrics Different from the HikariDataSource metrics

yu199195 avatar May 12 '20 10:05 yu199195

I think we can add some metrics according to different modules. For example ,in shadow module

name type description
shadow_hit_total Counter Collect the number of times hit the shadow database
shadow_route_latency Histogram Collect the route latency time for shadow (ms)
shadow_rewrite_latency Histogram Collect the rewrite latency time for shadow (ms)

yanyzy avatar May 12 '20 14:05 yanyzy

@yanyzy good idea,you can contribute it

yu199195 avatar May 13 '20 02:05 yu199195