Documentation ¶
Index ¶
- func AddBytesCounterForTopic(topic string)
- func AddConnectedClientsGauge()
- func AddGauge(name, key string)
- func AddMessageCounterForOpCode(opCode int)
- func MetricsScrapingHandler() http.Handler
- func UpdateBytesCounterForTopic(topic string, bytesCount int)
- func UpdateConnectedClientsGauge(isConnected bool)
- func UpdateGauge(key string, val float64)
- func UpdateMessageCounterForOpCode(opCode, bytesCount int)
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 AddMessageCounterForOpCode ¶
func AddMessageCounterForOpCode(opCode int)
AddMessageCounterForOpCode adds number of messages for a specific op-code KPI
func MetricsScrapingHandler ¶
MetricsScrapingHandler returns Prometheus handler as http handler
func UpdateBytesCounterForTopic ¶
UpdateBytesCounterForTopic updates number of bytes for topic KPI
func UpdateConnectedClientsGauge ¶
func UpdateConnectedClientsGauge(isConnected bool)
UpdateConnectedClientsGauge updates number of connected web-socket clients KPI
func UpdateMessageCounterForOpCode ¶
func UpdateMessageCounterForOpCode(opCode, bytesCount int)
UpdateMessageCounterForOpCode updates number of messages for a specific op-code KPI
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.