prometheus

package
v1.92.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCollector

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

ClientCollector for prometheus.

func NewClientCollector

func NewClientCollector(lc fx.Lifecycle, version version.Version) *ClientCollector

NewClientCollector for prometheus.

func (*ClientCollector) Collect

func (m *ClientCollector) Collect(ch chan<- prometheus.Metric)

Collect is called by the prometheus registry when collecting metrics. The implementation sends each collected metric via the provided channel and returns once the last metric has been sent.

func (*ClientCollector) Describe

func (m *ClientCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector to the provided channel and returns once the last descriptor has been sent.

func (*ClientCollector) RoundTripper

func (m *ClientCollector) RoundTripper(rt http.RoundTripper) http.RoundTripper

RoundTripper for prometheus.

type ServerCollector

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

ServerCollector for prometheus.

func NewServerCollector

func NewServerCollector(lc fx.Lifecycle, version version.Version) *ServerCollector

NewServerCollector for prometheus.

func (*ServerCollector) Collect

func (m *ServerCollector) Collect(ch chan<- prometheus.Metric)

Collect is called by the Prometheus registry when collecting metrics. The implementation sends each collected metric via the provided channel and returns once the last metric has been sent.

func (*ServerCollector) Describe

func (m *ServerCollector) Describe(ch chan<- *prometheus.Desc)

Describe sends the super-set of all possible descriptors of metrics collected by this Collector to the provided channel and returns once the last descriptor has been sent.

func (*ServerCollector) Handler

func (m *ServerCollector) Handler(h http.Handler) http.Handler

Handler for prometheus.

Jump to

Keyboard shortcuts

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