Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatsCollector ¶
type StatsCollector struct {
// contains filtered or unexported fields
}
StatsCollector implements the prometheus.Collector interface.
func NewStatsCollector ¶
func NewStatsCollector(cacheName string, sg StatsGetter) *StatsCollector
NewStatsCollector creates a new StatsCollector.
func (StatsCollector) Collect ¶
func (c StatsCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (StatsCollector) Describe ¶
func (c StatsCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
type StatsGetter ¶
type StatsGetter interface {
Stats() *cache.Stats
}
StatsGetter is an interface that gets *cache.Stats.
Click to show internal directories.
Click to hide internal directories.