-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metrics: adjust bucket count to reduce metrics data #1609
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @zimulala! |
@@ -191,7 +191,7 @@ func initMetrics(namespace, subsystem string, constLabels prometheus.Labels) { | |||
Subsystem: subsystem, | |||
Name: "rpc_net_latency_seconds", | |||
Help: "Bucketed histogram of time difference between TiDB and TiKV.", | |||
Buckets: prometheus.ExponentialBuckets(5e-5, 2, 22), // 50us ~ 105s | |||
Buckets: prometheus.ExponentialBuckets(0.0001, 2, 20), // 0.1ms ~ 52s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a slight adjustment based on https://github.com/tikv/client-go/pull/997/files
Signed-off-by: Lynn <zimu_xia@126.com>
ac8dec4
to
57a9d17
Compare
Signed-off-by: Lynn <zimu_xia@126.com>
14f502d
to
daed01b
Compare
Ref: pingcap/tidb#59990