Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeMetrics ¶
func InitializeMetrics(enableDefaultCollectors bool) (*prometheus.Registry, promauto.Factory)
InitializeMetrics create a custom promauto instance with a local registry to avoid potential conflicts arising from packages using the default promauto registry
Types ¶
type Metrics ¶
type Metrics interface { // Register provides a prometheus factory that can be employed to add custom metrics to the service Register(pf promauto.Factory) }
Metrics is an interface that can be employed when using the service to
define custom metrics that developer can add throughout the service
Click to show internal directories.
Click to hide internal directories.