Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheCollector ¶
type CacheCollector struct { Stats CacheList // contains filtered or unexported fields }
CacheCollector is our input for creating metrics for our cache data.
func (*CacheCollector) Collect ¶
func (c *CacheCollector) Collect(ch chan<- prometheus.Metric)
Collect satisfies the Collector interface for prometheus.
func (*CacheCollector) Describe ¶
func (c *CacheCollector) Describe(ch chan<- *prometheus.Desc)
Describe satisfies the Collector interface for prometheus.
type Metrics ¶
type Metrics struct { QueryErrors *prometheus.CounterVec QueryMissing *prometheus.CounterVec QueryTime *prometheus.HistogramVec ReqTime *prometheus.HistogramVec Uptime prometheus.CounterFunc }
Metrics contains the exported prometheus metrics used by the application.
func GetMetrics ¶
func GetMetrics(collector *CacheCollector) *Metrics
GetMetrics sets up metrics on startup. @Description Retreive internal application metrics. @Summary Return auth proxy metrics in open metrics format @Tags stats @Produce json @Success 200 {object} any "Auth Proxy Prometheus metrics" @Router /metrics [get]
Click to show internal directories.
Click to hide internal directories.