Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // need change both MetricsRaftRoleSwitchName = "raft_role_switch_count" MetricsRaftRoleSwitch = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "raft", Subsystem: "role", Name: "switch_count", Help: "The Leader/Follower switch count", }, []string{"RaftGroupName"}, ) MetricsRaftApplyIndexName = "raft_apply_index" MetricsRaftApplyIndex = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: "raft", Subsystem: "apply", Name: "index", Help: "The raft apply index", }, []string{"RaftGroupName"}, ) MetricsRaftLatency = prometheus.NewSummaryVec(prometheus.SummaryOpts{ Namespace: "raft", Subsystem: "entry", Name: "latency", Help: "Raft Latency", MaxAge: conf.DefaultMetricsConfig.RaftGroupEntryLatencySummaryDuration, }, []string{"RaftGroupName"}, ) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.