metrics

package
v0.0.0-...-abf550e Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	RaftStateMetric                    *prometheus.GaugeVec
	RaftTermMetric                     *prometheus.GaugeVec
	RaftLastLogIndexMetric             *prometheus.GaugeVec
	RaftLastLogTermMetric              *prometheus.GaugeVec
	RaftCommitIndexMetric              *prometheus.GaugeVec
	RaftAppliedIndexMetric             *prometheus.GaugeVec
	RaftFsmPendingMetric               *prometheus.GaugeVec
	RaftLastSnapshotIndexMetric        *prometheus.GaugeVec
	RaftLastSnapshotTermMetric         *prometheus.GaugeVec
	RaftLatestConfigurationIndexMetric *prometheus.GaugeVec
	RaftNumPeersMetric                 *prometheus.GaugeVec
	RaftLastContactMetric              *prometheus.GaugeVec
	RaftNumNodesMetric                 *prometheus.GaugeVec
	HTTPRestOperationsMetric           *prometheus.SummaryVec
	HTTPRestCounterMetric              *prometheus.CounterVec
	// contains filtered or unexported fields
}

Metrics server

func New

func New(logger *logging.Logging, ipPort string) *Metrics

New returns a metrics server

func (*Metrics) Register

func (m *Metrics) Register()

Register makes the metrics registration

func (*Metrics) Shutdown

func (m *Metrics) Shutdown() error

Shutdown stops in a safe way the http server

func (*Metrics) Start

func (m *Metrics) Start() error

Start the metrics endpoints

Jump to

Keyboard shortcuts

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