...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package wal
16
17 import "github.com/prometheus/client_golang/prometheus"
18
19 var (
20 walFsyncSec = prometheus.NewHistogram(prometheus.HistogramOpts{
21 Namespace: "etcd",
22 Subsystem: "disk",
23 Name: "wal_fsync_duration_seconds",
24 Help: "The latency distributions of fsync called by WAL.",
25
26
27
28 Buckets: prometheus.ExponentialBuckets(0.001, 2, 14),
29 })
30
31 walWriteBytes = prometheus.NewGauge(prometheus.GaugeOpts{
32 Namespace: "etcd",
33 Subsystem: "disk",
34 Name: "wal_write_bytes_total",
35 Help: "Total number of bytes written in WAL.",
36 })
37 )
38
39 func init() {
40 prometheus.MustRegister(walFsyncSec)
41 prometheus.MustRegister(walWriteBytes)
42 }
43
View as plain text