prometheus

package
v1.94.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCollector

type ClientCollector struct {
	// contains filtered or unexported fields
}

ClientCollector for prometheus.

func NewClientCollector

func NewClientCollector(lc fx.Lifecycle, version version.Version) *ClientCollector

NewClientCollector for prometheus.

func (*ClientCollector) Collect

func (m *ClientCollector) Collect(ch chan<- prometheus.Metric)

Collect is called by the prometheus registry when collecting metrics. The implementation sends each collected metric via the provided channel and returns once the last metric has been sent.

func (*ClientCollector) Describe

func (m *ClientCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector to the provided channel and returns once the last descriptor has been sent.

func (*ClientCollector) StreamClientInterceptor

func (m *ClientCollector) StreamClientInterceptor() grpc.StreamClientInterceptor

StreamClientInterceptor is a gRPC client-side interceptor that provides prometheus monitoring for Streaming RPCs.

func (*ClientCollector) UnaryClientInterceptor

func (m *ClientCollector) UnaryClientInterceptor() grpc.UnaryClientInterceptor

UnaryClientInterceptor is a gRPC client-side interceptor that provides prometheus monitoring for Unary RPCs.

type ServerCollector

type ServerCollector struct {
	// contains filtered or unexported fields
}

ServerCollector for prometheus.

func NewServerCollector

func NewServerCollector(lc fx.Lifecycle, version version.Version) *ServerCollector

NewServerCollector for prometheus.

func (*ServerCollector) Collect

func (m *ServerCollector) Collect(ch chan<- prometheus.Metric)

Collect is called by the Prometheus registry when collecting metrics. The implementation sends each collected metric via the provided channel and returns once the last metric has been sent.

func (*ServerCollector) Describe

func (m *ServerCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector to the provided channel and returns once the last descriptor has been sent.

func (*ServerCollector) StreamServerInterceptor

func (m *ServerCollector) StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor is a gRPC server-side interceptor that provides Prometheus monitoring for Streaming RPCs.

func (*ServerCollector) UnaryServerInterceptor

func (m *ServerCollector) UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor is a gRPC server-side interceptor that provides Prometheus monitoring for Unary RPCs.

Jump to

Keyboard shortcuts

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