mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5705 from xiang90/metrics_peer
*: add peer prefix for network metrics between peers
This commit is contained in:
commit
aa503f84d5
@ -63,13 +63,13 @@ All these metrics are prefixed with `etcd_network_`
|
||||
|
||||
| Name | Description | Type |
|
||||
|---------------------------|--------------------------------------------------------------------|---------------|
|
||||
| sent_bytes_total | The total number of bytes sent to the member with ID `TO`. | Counter(To) |
|
||||
| received_bytes_total | The total number of bytes received from the member with ID `From`. | Counter(From) |
|
||||
| round_trip_time_seconds | Round-Trip-Time histogram between members. | Histogram(To) |
|
||||
| peer_sent_bytes_total | The total number of bytes sent to the peer with ID `To`. | Counter(To) |
|
||||
| peer_received_bytes_total | The total number of bytes received from the peer with ID `From`. | Counter(From) |
|
||||
| peer_round_trip_time_seconds | Round-Trip-Time histogram between peers. | Histogram(To) |
|
||||
|
||||
`sent_bytes_total` counts the total number of bytes sent to a specific member. Usually the leader member sends more data than other members since it is responsible for transmitting replicated data.
|
||||
`peer_sent_bytes_total` counts the total number of bytes sent to a specific peer. Usually the leader member sends more data than other members since it is responsible for transmitting replicated data.
|
||||
|
||||
`received_bytes_total` counts the total number of bytes received from a specific member. Usually follower members receive data only from the leader member.
|
||||
`peer_received_bytes_total` counts the total number of bytes received from a specific peer. Usually follower members receive data only from the leader member.
|
||||
|
||||
### gRPC requests
|
||||
|
||||
|
@ -21,8 +21,8 @@ var (
|
||||
sentBytes = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: "etcd",
|
||||
Subsystem: "network",
|
||||
Name: "sent_bytes_total",
|
||||
Help: "The total number of bytes sent.",
|
||||
Name: "peer_sent_bytes_total",
|
||||
Help: "The total number of bytes sent to peers.",
|
||||
},
|
||||
[]string{"To"},
|
||||
)
|
||||
@ -30,8 +30,8 @@ var (
|
||||
receivedBytes = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: "etcd",
|
||||
Subsystem: "network",
|
||||
Name: "received_bytes_total",
|
||||
Help: "The total number of bytes received.",
|
||||
Name: "peer_received_bytes_total",
|
||||
Help: "The total number of bytes received from peers.",
|
||||
},
|
||||
[]string{"From"},
|
||||
)
|
||||
@ -39,8 +39,8 @@ var (
|
||||
rtts = prometheus.NewHistogramVec(prometheus.HistogramOpts{
|
||||
Namespace: "etcd",
|
||||
Subsystem: "network",
|
||||
Name: "round_trip_time_seconds",
|
||||
Help: "Round-Trip-Time histogram between members.",
|
||||
Name: "peer_round_trip_time_seconds",
|
||||
Help: "Round-Trip-Time histogram between peers.",
|
||||
Buckets: prometheus.ExponentialBuckets(0.0001, 2, 14),
|
||||
},
|
||||
[]string{"To"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user