metrics

package
v0.0.0-...-2e4f182 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecrGatewaySession

func DecrGatewaySession(sessionType string)

DecrGatewaySession 减少网关session计数

func IncrGRPCRequests

func IncrGRPCRequests(method string, err error, requestAt time.Time)

IncrGRPCRequests 统计grpc请求

func IncrGatewaySession

func IncrGatewaySession(sessionType string)

IncrGatewaySession 增加网关session计数

func IncrMessageQueue

func IncrMessageQueue(topic string, publishAt time.Time)

IncrMessageQueue 队列消息统计

func IncrPayloadSize

func IncrPayloadSize(sessionType string, size int)

IncrPayloadSize 统计网络包大小

func Init

func Init() *prometheus.Registry

Init 初始化metrics

Types

This section is empty.

Jump to

Keyboard shortcuts

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