metrics

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceHTTPMetrics = "http_stats"
	NamespaceGRPCMetrics = "grpc_stats"
)

Variables

View Source
var (
	// Generic gRPC collectors for observability defined here.
	RPCStarted    *prometheus.CounterVec
	RPCHandled    *prometheus.CounterVec
	RPCDuration   *prometheus.HistogramVec
	StreamMsgSent *prometheus.CounterVec
	StreamMsgRecv *prometheus.CounterVec
)
View Source
var (
	// Total HTTP requests handled by the server
	RequestsHandled *prometheus.CounterVec

	// HTTP Request duration (latency)
	RequestDuration *prometheus.HistogramVec
)

Functions

func Routes

func Routes(router *gin.Engine)

func Setup

func Setup() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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