metrics

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

Handler returns the Prometheus scrape handler for GET /metrics.

func IncWSClosed

func IncWSClosed()

IncWSClosed records a closed WebSocket connection.

func IncWSOpened

func IncWSOpened()

IncWSOpened records a new WebSocket connection.

func ObserveGRPC

func ObserveGRPC(method, code string)

ObserveGRPC increments gRPC request counters.

func ObserveHTTP

func ObserveHTTP(method, path, code string)

ObserveHTTP increments HTTP request counters.

func SetWSSessions

func SetWSSessions(n float64)

SetWSSessions updates the active session gauge.

func UpdateDBPool

func UpdateDBPool(pool *pgxpool.Pool)

UpdateDBPool publishes pgxpool statistics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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