Documentation ¶
Index ¶
- func Inc(metricName string, labels Labels)
- func Register(metricName string, labels []string, help string)
- func RegisterWithCollector(metricName string, labels Labels, help string, collector func(Labels) float64)
- func Unregister(metricName string)
- func UnregisterWithCollector(metricName string, labels Labels)
- type Labels
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
RegisterGauge register and store collector for particular [metricKey, metricName] pair. getter function is used to provide metric value
func RegisterWithCollector ¶
func RegisterWithCollector( metricName string, labels Labels, help string, collector func(Labels) float64, )
RegisterGauge register and store collector for particular [metricKey, metricName] pair. collector function is used to provide metric value
func Unregister ¶
func Unregister(metricName string)
Unregister unregisters metric fo specified name
func UnregisterWithCollector ¶
Unregister unregisters metric fo specified name
Types ¶
Click to show internal directories.
Click to hide internal directories.