prometheus

package
v1.90.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 added in v1.90.2

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

ClientCollector for prometheus.

func NewClientCollector added in v1.90.2

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

NewClientCollector for prometheus.

func (*ClientCollector) Collect added in v1.90.2

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 added in v1.90.2

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 added in v1.90.2

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

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

func (*ClientCollector) UnaryClientInterceptor added in v1.90.2

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

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

type ServerCollector added in v1.90.2

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

ServerCollector for prometheus.

func NewServerCollector added in v1.90.2

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

NewServerCollector for prometheus.

func (*ServerCollector) Collect added in v1.90.2

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 added in v1.90.2

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 added in v1.90.2

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

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

func (*ServerCollector) UnaryServerInterceptor added in v1.90.2

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