metrics

package
v0.3.6-dev1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStoreMetrics

type EventStoreMetrics struct {
	TransmittedTotalCounter *prom.CounterVec
	StoredTotalCounter      *prom.CounterVec
	RetrievedTotalCounter   *prom.CounterVec
	StoredHistogram         *prom.HistogramVec
	RetrievedHistogram      *prom.HistogramVec
}

EventStoreMetrics represents a collection of metrics to be registered on a Prometheus metrics registry for EventStore metrics.

func NewEventStoreMetrics

func NewEventStoreMetrics() *EventStoreMetrics

NewEventStoreMetrics returns a ServerMetrics object. Use a new instance of ServerMetrics when not using the default Prometheus metrics registry, for example when wanting to control which metrics are added to a registry as opposed to automatically adding metrics via init functions.

Jump to

Keyboard shortcuts

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