Documentation ¶
Overview ¶
Package metrics contains a Prometheus metrics registry that importing code can use to register Prometheus metrics. When all metrics collection is complete, the PushToPrometheus function can be used to push metrics to a Prometheus Pushgateway server, which is configured through viper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MetricsRegistry is a prometheus registry that can be exported and used by importing libraries MetricsRegistry = prometheus.NewRegistry() )
Functions ¶
func PushToPrometheus ¶
PushToPrometheus uses the package MetricsRegistry to push registered metrics to the configured Prometheus pushgateway
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.