Documentation ¶
Index ¶
- func BuildCollector() prometheus.Collector
- func CreateGRPCClientMetrics(latencyEnabled bool, labels prometheus.Labels) *om.ClientMetrics
- func CreateGRPCServerMetrics(latencyEnabled bool, labels prometheus.Labels) *om.ServerMetrics
- func RegisterPrometheusCollectors(collectors ...prometheus.Collector) error
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.
Click to show internal directories.
Click to hide internal directories.