prometheus

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Metrics manages the metric information that Yorkie is trying to measure.

func NewMetrics

func NewMetrics() (*Metrics, error)

NewMetrics creates a new instance of Metrics.

func (*Metrics) AddPushPullReceivedChanges

func (m *Metrics) AddPushPullReceivedChanges(count int)

AddPushPullReceivedChanges sets the number of changes included in the request pack of PushPull.

func (*Metrics) AddPushPullReceivedOperations

func (m *Metrics) AddPushPullReceivedOperations(count int)

AddPushPullReceivedOperations sets the number of operations included in the request pack of PushPull.

func (*Metrics) AddPushPullSentChanges

func (m *Metrics) AddPushPullSentChanges(count int)

AddPushPullSentChanges adds the number of changes included in the response pack of PushPull.

func (*Metrics) AddPushPullSentOperations

func (m *Metrics) AddPushPullSentOperations(count int)

AddPushPullSentOperations adds the number of operations included in the response pack of PushPull.

func (*Metrics) AddPushPullSnapshotBytes

func (m *Metrics) AddPushPullSnapshotBytes(bytes int)

AddPushPullSnapshotBytes adds the snapshot byte size of response pack.

func (*Metrics) ObservePushPullResponseSeconds

func (m *Metrics) ObservePushPullResponseSeconds(seconds float64)

ObservePushPullResponseSeconds adds an observation for response time of PushPull.

func (*Metrics) ObservePushPullSnapshotDurationSeconds

func (m *Metrics) ObservePushPullSnapshotDurationSeconds(seconds float64)

ObservePushPullSnapshotDurationSeconds adds an observation for creating snapshot for the response pack.

func (*Metrics) RegisterGRPCServer

func (m *Metrics) RegisterGRPCServer(server *grpc.Server)

RegisterGRPCServer registers the given gRPC server.

func (*Metrics) Registry

func (m *Metrics) Registry() *prometheus.Registry

Registry returns the registry of this metrics.

func (*Metrics) ServerMetrics

func (m *Metrics) ServerMetrics() *grpcprometheus.ServerMetrics

ServerMetrics returns the serverMetrics.

Jump to

Keyboard shortcuts

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