prometheus

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 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 Collector

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

Collector implements the prometheus.Collector interface.

func NewCollector

func NewCollector(name string, db *mssqlx.DBs, version version.Version) *Collector

NewCollector for prometheus.

func (Collector) Collect

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

Collect implements the prometheus.Collector interface.

func (Collector) Describe

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