Documentation ¶
Index ¶
- Constants
- func NewMetric(name, help string) *prometheus.CounterVec
- type PrometheusStatsCounter
- func (p *PrometheusStatsCounter) RecordEviction()
- func (p *PrometheusStatsCounter) RecordHits(count uint64)
- func (p *PrometheusStatsCounter) RecordLoadError(loadTime time.Duration)
- func (p *PrometheusStatsCounter) RecordLoadSuccess(loadTime time.Duration)
- func (p *PrometheusStatsCounter) RecordMisses(count uint64)
- func (p *PrometheusStatsCounter) Snapshot(stats *cache.Stats)
Constants ¶
View Source
const ResultLabel = "result"
Variables ¶
This section is empty.
Functions ¶
func NewMetric ¶
func NewMetric(name, help string) *prometheus.CounterVec
Types ¶
type PrometheusStatsCounter ¶
type PrometheusStatsCounter struct {
Metric *prometheus.CounterVec
}
func (*PrometheusStatsCounter) RecordEviction ¶
func (p *PrometheusStatsCounter) RecordEviction()
func (*PrometheusStatsCounter) RecordHits ¶
func (p *PrometheusStatsCounter) RecordHits(count uint64)
func (*PrometheusStatsCounter) RecordLoadError ¶
func (p *PrometheusStatsCounter) RecordLoadError(loadTime time.Duration)
func (*PrometheusStatsCounter) RecordLoadSuccess ¶
func (p *PrometheusStatsCounter) RecordLoadSuccess(loadTime time.Duration)
func (*PrometheusStatsCounter) RecordMisses ¶
func (p *PrometheusStatsCounter) RecordMisses(count uint64)
func (*PrometheusStatsCounter) Snapshot ¶
func (p *PrometheusStatsCounter) Snapshot(stats *cache.Stats)
Click to show internal directories.
Click to hide internal directories.