collectors

package
v0.0.0-...-f839e32 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfoCollector

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

BuildInfoCollector is a collector for build information metrics

func NewBuildInfoCollector

func NewBuildInfoCollector(name, version, tag, sha, built string) *BuildInfoCollector

NewBuildInfoCollector creates new BuildInfoCollector

func (*BuildInfoCollector) Collect

func (c *BuildInfoCollector) Collect(ch chan<- prometheus.Metric)

Collect returns the current state of all metrics of the collector.

func (*BuildInfoCollector) Describe

func (c *BuildInfoCollector) Describe(ch chan<- *prometheus.Desc)

Describe returns all descriptions of the collector.

type GRPCServerMetricsCollector

type GRPCServerMetricsCollector struct {
	*grpc_prometheus.ServerMetrics
	// contains filtered or unexported fields
}

func NewGRPCServerMetricsCollector

func NewGRPCServerMetricsCollector(namespace, system string) *GRPCServerMetricsCollector

func (*GRPCServerMetricsCollector) GetGRPCServerOptions

func (c *GRPCServerMetricsCollector) GetGRPCServerOptions() ([]grpc.ServerOption, error)

GetGRPCServerOptions prepares slice of grpc.ServerOption for gRPC metrics collectors

func (*GRPCServerMetricsCollector) RegisterServer

func (c *GRPCServerMetricsCollector) RegisterServer(server *grpc.Server)

Jump to

Keyboard shortcuts

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