prometheus

package
v1.76.27 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(lc fx.Lifecycle, name string, db *mssqlx.DBs, version version.Version)

Register for prometheus.

Types

type StatsCollector added in v1.65.0

type StatsCollector struct {
	// contains filtered or unexported fields
}

StatsCollector implements the prometheus.Collector interface.

func NewStatsCollector added in v1.65.0

func NewStatsCollector(name string, db *mssqlx.DBs, version version.Version) *StatsCollector

NewStatsCollector for prometheus.

func (StatsCollector) Collect added in v1.65.0

func (c StatsCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (StatsCollector) Describe added in v1.65.0

func (c StatsCollector) 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