metrics

package
v0.0.0-...-cd00529 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 3 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
}

func New

func New(applicationName string) *Metrics

func (*Metrics) GinHandler

func (m *Metrics) GinHandler() gin.HandlerFunc

GinHandler returns a Gin handler for Prometheus metrics endpoint

func (*Metrics) IncXDSMessageCount

func (m *Metrics) IncXDSMessageCount(messageType string)

IncXDSMessageCount increases counter per XDS messageType

func (*Metrics) IncXDSSnapshotCreateCount

func (m *Metrics) IncXDSSnapshotCreateCount(messageType string)

IncXDSSnapshotCreateCount increases number of snapshots taken

func (*Metrics) RegisterWithPrometheus

func (m *Metrics) RegisterWithPrometheus()

RegisterWithPrometheus registers control plane operational metrics

func (*Metrics) SetEntityCount

func (m *Metrics) SetEntityCount(label string, count int)

SetEntityCount sets number of listeners we know

Jump to

Keyboard shortcuts

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