Documentation
¶
Index ¶
- type Collector
- func (c *Collector) IncAuthorizationCanceled(app string)
- func (c *Collector) IncAuthorizationConfirmed(app string)
- func (c *Collector) IncAuthorizationRequested(app string)
- func (c *Collector) IncGeneratedToken(app string)
- func (c *Collector) MetricsHandler() http.Handler
- func (c *Collector) MetricsMiddleware(h http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { Registry *prometheus.Registry // contains filtered or unexported fields }
Collector is metrics collector.
func NewCollector ¶
func NewCollector(logger logrus.FieldLogger) *Collector
NewCollector creates new Collector and registers metrics.
func (*Collector) IncAuthorizationCanceled ¶
func (*Collector) IncAuthorizationConfirmed ¶
func (*Collector) IncAuthorizationRequested ¶
func (*Collector) IncGeneratedToken ¶
func (*Collector) MetricsHandler ¶
MetricsHandler returns Prometheus HTTP metrics API handler.
Click to show internal directories.
Click to hide internal directories.