Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBCollector ¶
type DBCollector struct {
// contains filtered or unexported fields
}
DBCollector - представляет собой prometheus.Collector, который собирает статистику получаемую из DBStatProvider.
func NewDBCollector ¶
func NewDBCollector(namespace string, providerFunc func() mrstorage.DBStatProvider, labels map[string]string) *DBCollector
NewDBCollector - создаёт объект DBCollector.
func (*DBCollector) Collect ¶
func (c *DBCollector) Collect(metrics chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (*DBCollector) Describe ¶
func (c *DBCollector) Describe(ch chan<- *prometheus.Desc)
Describe - implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.