Documentation ¶
Overview ¶
Package monitoring contains functionality for metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndRegisterMetricsFromStruct ¶
func CreateAndRegisterMetricsFromStruct(c interface{}) error
CreateAndRegisterMetricsFromStruct accepts a struct and dynamically creates metrics from the field names and associated tags provided.
func ListenAndServeMetrics ¶
ListenAndServeMetrics initialises a new HTTP Server in the address specified in the parameter. This function blocks indefinitely and should be run on a separate goroutine. If the context provided is done, the HTTP Server is closed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.