metrics

package
v1.2.97 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBytesCounterForTopic

func AddBytesCounterForTopic(topic string)

AddBytesCounterForTopic adds number of bytes for topic KPI

func AddConnectedClientsGauge

func AddConnectedClientsGauge()

AddConnectedClientsGauge adds number of connected web-socket clients KPI

func AddGauge

func AddGauge(name, key string)

AddGauge adds metric gauge

func AddMessageCounterForOpCode

func AddMessageCounterForOpCode(opCode int)

AddMessageCounterForOpCode adds number of messages for a specific op-code KPI

func MetricsScrapingHandler

func MetricsScrapingHandler() http.Handler

MetricsScrapingHandler returns Prometheus handler as http handler

func UpdateBytesCounterForTopic

func UpdateBytesCounterForTopic(topic string, bytesCount int)

UpdateBytesCounterForTopic updates number of bytes for topic KPI

func UpdateConnectedClientsGauge

func UpdateConnectedClientsGauge(isConnected bool)

UpdateConnectedClientsGauge updates number of connected web-socket clients KPI

func UpdateGauge

func UpdateGauge(key string, val float64)

UpdateGauge updates metric gauge

func UpdateMessageCounterForOpCode

func UpdateMessageCounterForOpCode(opCode, bytesCount int)

UpdateMessageCounterForOpCode updates number of messages for a specific op-code KPI

Types

This section is empty.

Jump to

Keyboard shortcuts

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