Documentation
¶
Overview ¶
Copyright 2022. Motty Cohen
Utility functions for metrics monitoring (using Prometheus)
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)
func AddConnectedClientsGauge ¶
func AddConnectedClientsGauge()
func AddMessageCounterForOpCode ¶
func AddMessageCounterForOpCode(opCode int)
func MetricsScrapingHandler ¶
func UpdateConnectedClientsGauge ¶
func UpdateConnectedClientsGauge(isConnected bool)
func UpdateGauge ¶
func UpdateMessageCounterForOpCode ¶
func UpdateMessageCounterForOpCode(opCode, bytesCount int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.