From 107ef78d3d8a73308ec22635d73e492d227ad12e Mon Sep 17 00:00:00 2001 From: csuzhangxc Date: Sat, 11 Apr 2020 23:15:58 +0800 Subject: [PATCH] *: make first upper bound lower (fix metrics) --- loader/metrics.go | 6 +++--- syncer/metrics.go | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/loader/metrics.go b/loader/metrics.go index e95071756c..959e6fd5d8 100644 --- a/loader/metrics.go +++ b/loader/metrics.go @@ -33,7 +33,7 @@ var ( Subsystem: "loader", Name: "query_duration_time", Help: "Bucketed histogram of query time (s) of a txn.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) txnHistogram = prometheus.NewHistogramVec( @@ -42,7 +42,7 @@ var ( Subsystem: "loader", Name: "txn_duration_time", Help: "Bucketed histogram of processing time (s) of a txn.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) stmtHistogram = prometheus.NewHistogramVec( @@ -51,7 +51,7 @@ var ( Subsystem: "loader", Name: "stmt_duration_time", Help: "Bucketed histogram of every statement query time (s).", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"type", "task"}) dataFileGauge = prometheus.NewGaugeVec( diff --git a/syncer/metrics.go b/syncer/metrics.go index d3c109043a..2579ff4a69 100644 --- a/syncer/metrics.go +++ b/syncer/metrics.go @@ -34,7 +34,7 @@ var ( Subsystem: "syncer", Name: "read_binlog_duration", Help: "bucketed histogram of read time (s) for single binlog event from the relay log or master.", - Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) binlogEventSizeHistogram = prometheus.NewHistogramVec( @@ -52,7 +52,7 @@ var ( Subsystem: "syncer", Name: "binlog_transform_cost", Help: "cost of binlog event transform", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"type", "task"}) conflictDetectDurationHistogram = prometheus.NewHistogramVec( @@ -61,7 +61,7 @@ var ( Subsystem: "syncer", Name: "conflict_detect_duration", Help: "bucketed histogram of conflict detect time (s) for single DML statement", - Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) addJobDurationHistogram = prometheus.NewHistogramVec( @@ -70,7 +70,7 @@ var ( Subsystem: "syncer", Name: "add_job_duration", Help: "bucketed histogram of add a job to the queue time (s)", - Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"type", "task", "queueNo"}) binlogSkippedEventsTotal = prometheus.NewCounterVec( @@ -135,7 +135,7 @@ var ( Subsystem: "syncer", Name: "txn_duration_time", Help: "Bucketed histogram of processing time (s) of a txn.", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) queryHistogram = prometheus.NewHistogramVec( @@ -144,7 +144,7 @@ var ( Subsystem: "syncer", Name: "query_duration_time", Help: "Bucketed histogram of query time (s).", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"task"}) stmtHistogram = prometheus.NewHistogramVec( @@ -153,7 +153,7 @@ var ( Subsystem: "syncer", Name: "stmt_duration_time", Help: "Bucketed histogram of every statement query time (s).", - Buckets: prometheus.ExponentialBuckets(0.0005, 2, 18), + Buckets: prometheus.ExponentialBuckets(0.000005, 2, 25), }, []string{"type", "task"}) // FIXME: should I move it to dm-worker?