Documentation
¶
Index ¶
- Constants
- Variables
- func MapPathToInstrumentation(rootAPI string)
- type Collector
- func (c *Collector) BindHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
- func (c *Collector) CatalogHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
- func (c *Collector) Collect(ch chan<- prometheus.Metric)
- func (c *Collector) DeprovosionHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
- func (c *Collector) Describe(ch chan<- *prometheus.Desc)
- func (c *Collector) ProvisionHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
- func (c *Collector) UnbindHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
- type Config
- type Path
Constants ¶
View Source
const ( Namespace = "compass" SystemBrokerSubsystem = "system_broker" )
Variables ¶
View Source
var PathToInstrumentationMapping map[Path]func(c *Collector, handler http.Handler) http.HandlerFunc
Functions ¶
func MapPathToInstrumentation ¶
func MapPathToInstrumentation(rootAPI string)
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) BindHandlerWithInstrumentation ¶
func (c *Collector) BindHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
func (*Collector) CatalogHandlerWithInstrumentation ¶
func (c *Collector) CatalogHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
func (*Collector) DeprovosionHandlerWithInstrumentation ¶
func (c *Collector) DeprovosionHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
func (*Collector) ProvisionHandlerWithInstrumentation ¶
func (c *Collector) ProvisionHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
func (*Collector) UnbindHandlerWithInstrumentation ¶
func (c *Collector) UnbindHandlerWithInstrumentation(handler http.Handler) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.