mrprometheus

package
v0.11.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL