metrics

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 6 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