raftgroupmetrics

package
v0.0.0-...-16dfdc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL