Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Namespace = "favorX"
Namespace is prefixed before every metric. If it is changed, it must be done before any metrics collector is registered.
Functions ¶
func PrometheusCollectorsFromFields ¶
func PrometheusCollectorsFromFields(i interface{}) (cs []prometheus.Collector)
Types ¶
type Collector ¶
type Collector interface {
Metrics() []prometheus.Collector
}
Click to show internal directories.
Click to hide internal directories.