Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Defaults DefaultMetrics // MustRegister registers registerable metrics but uses the defaultRegistry, panic upon the first registration that causes an error MustRegister func(...compbasemetrics.Registerable) // Register registers a collectable metric but uses the defaultRegistry Register func(compbasemetrics.Registerable) error RawMustRegister func(...prometheus.Collector) )
Functions ¶
Types ¶
type DefaultMetrics ¶
type DefaultMetrics struct{}
DefaultMetrics installs the default prometheus metrics handler
func (DefaultMetrics) Install ¶
func (m DefaultMetrics) Install(c *restful.Container)
Install adds the DefaultMetrics handler
Click to show internal directories.
Click to hide internal directories.