Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func NewCollector(circuitName string) *Middleware
NewCollector returns a hoglet.BreakerMiddleware that exposes prometheus metrics for the circuit. It implements prometheus.Collector and can therefore be registered with a prometheus.Registerer.
⚠️ Note: the provided name must be unique across all hoglet instances ultimately registered to the same prometheus.Registerer.
func (Middleware) Collect ¶
func (m Middleware) Collect(ch chan<- prometheus.Metric)
func (Middleware) Describe ¶
func (m Middleware) Describe(ch chan<- *prometheus.Desc)
func (Middleware) Wrap ¶
func (m Middleware) Wrap(of hoglet.ObserverFactory) (hoglet.ObserverFactory, error)
Click to show internal directories.
Click to hide internal directories.