metrics

package
v11.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCollector

func BuildCollector() prometheus.Collector

BuildCollector provides a Collector that contains build information gauge

func CreateGRPCClientMetrics

func CreateGRPCClientMetrics(latencyEnabled bool, labels prometheus.Labels) *om.ClientMetrics

CreateGRPCClientMetrics creates client grpc metrics configuration that is to be registered and used by the caller in an openmetrics unary and/or stream interceptor

func CreateGRPCServerMetrics

func CreateGRPCServerMetrics(latencyEnabled bool, labels prometheus.Labels) *om.ServerMetrics

CreateGRPCServerMetrics creates server grpc metrics configuration that is to be registered and used by the caller in an openmetrics unary and/or stream interceptor

func RegisterPrometheusCollectors

func RegisterPrometheusCollectors(collectors ...prometheus.Collector) error

RegisterPrometheusCollectors is a wrapper around prometheus.Register that

  • ignores equal or re-registered collectors
  • returns an error if a collector does not fulfill the consistency and uniqueness criteria

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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