fix change unit to seconds (#1408)

Co-authored-by: xuyong.zhang <xuyong.zhang@hiscene.com>
pull/1415/head
塔塔开 3 years ago committed by GitHub
parent 8468cfdd45
commit a78f740bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      examples/metrics/main.go

@ -26,9 +26,9 @@ var (
_metricSeconds = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Namespace: "server",
Subsystem: "requests",
Name: "duration_ms",
Help: "server requests duration(ms).",
Buckets: []float64{5, 10, 25, 50, 100, 250, 500, 1000},
Name: "duration_sec",
Help: "server requests duration(sec).",
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.1, 0.250, 0.5, 1},
}, []string{"kind", "operation"})
_metricRequests = prometheus.NewCounterVec(prometheus.CounterOpts{

Loading…
Cancel
Save