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

Commit

Permalink
*: increase bucket count with 0.00005 start
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Apr 9, 2020
1 parent 20c8266 commit 15f7a6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions relay/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var (
Subsystem: "relay",
Name: "write_duration",
Help: "bucketed histogram of write time (s) of single relay log event",
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 20),
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21),
})

// should alert
Expand All @@ -110,7 +110,7 @@ var (
Subsystem: "relay",
Name: "read_binlog_duration",
Help: "bucketed histogram of read time (s) of single binlog event from the master.",
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 20),
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21),
})

binlogTransformDurationHistogram = prometheus.NewHistogram(
Expand All @@ -119,7 +119,7 @@ var (
Subsystem: "relay",
Name: "read_transform_duration",
Help: "bucketed histogram of transform time (s) of single binlog event.",
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 20),
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21),
})

// should alert
Expand Down
4 changes: 2 additions & 2 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, 20),
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21),
}, []string{"task"})

binlogEventSizeHistogram = 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, 20),
Buckets: prometheus.ExponentialBuckets(0.00005, 2, 21),
}, []string{"task"})

binlogSkippedEventsTotal = prometheus.NewCounterVec(
Expand Down

0 comments on commit 15f7a6f

Please sign in to comment.