|
@@ -54,6 +54,12 @@ var (
|
|
|
Name: "slow_apply_total",
|
|
Name: "slow_apply_total",
|
|
|
Help: "The total number of slow apply requests (likely overloaded from slow disk).",
|
|
Help: "The total number of slow apply requests (likely overloaded from slow disk).",
|
|
|
})
|
|
})
|
|
|
|
|
+ applySnapshotInProgress = prometheus.NewGauge(prometheus.GaugeOpts{
|
|
|
|
|
+ Namespace: "etcd",
|
|
|
|
|
+ Subsystem: "server",
|
|
|
|
|
+ Name: "snapshot_apply_in_progress_total",
|
|
|
|
|
+ Help: "1 if the server is applying the incoming snapshot. 0 if none.",
|
|
|
|
|
+ })
|
|
|
proposalsCommitted = prometheus.NewGauge(prometheus.GaugeOpts{
|
|
proposalsCommitted = prometheus.NewGauge(prometheus.GaugeOpts{
|
|
|
Namespace: "etcd",
|
|
Namespace: "etcd",
|
|
|
Subsystem: "server",
|
|
Subsystem: "server",
|
|
@@ -131,6 +137,7 @@ func init() {
|
|
|
prometheus.MustRegister(leaderChanges)
|
|
prometheus.MustRegister(leaderChanges)
|
|
|
prometheus.MustRegister(heartbeatSendFailures)
|
|
prometheus.MustRegister(heartbeatSendFailures)
|
|
|
prometheus.MustRegister(slowApplies)
|
|
prometheus.MustRegister(slowApplies)
|
|
|
|
|
+ prometheus.MustRegister(applySnapshotInProgress)
|
|
|
prometheus.MustRegister(proposalsCommitted)
|
|
prometheus.MustRegister(proposalsCommitted)
|
|
|
prometheus.MustRegister(proposalsApplied)
|
|
prometheus.MustRegister(proposalsApplied)
|
|
|
prometheus.MustRegister(proposalsPending)
|
|
prometheus.MustRegister(proposalsPending)
|