Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultStatsProvider ¶ added in v0.0.5
type DefaultStatsProvider struct {
// contains filtered or unexported fields
}
DefaultStatsProvider ...
func NewStatsProvider ¶ added in v0.0.5
func NewStatsProvider(dbName string, db StatsGetter) DefaultStatsProvider
NewStatsProvider ...
type StatsCollector ¶
type StatsCollector struct {
// contains filtered or unexported fields
}
StatsCollector implements the prometheus.Collector interface.
func NewStatsCollector ¶
func NewStatsCollector(sp StatsProvider) *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 StatsProvider ¶ added in v0.0.5
type StatsProvider interface {
StatsGetter
DBName() string
}
StatsProvider ...
Click to show internal directories.
Click to hide internal directories.