Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
*: make first upper bound lower (fix metrics)
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Apr 11, 2020
1 parent 1be19f9 commit 107ef78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions loader/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand Down
14 changes: 7 additions & 7 deletions syncer/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand Down Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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?
Expand Down

0 comments on commit 107ef78

Please sign in to comment.