prometheus

package
v1.74.15 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerMetrics

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

ConsumerMetrics for prometheus.

func NewConsumerMetrics

func NewConsumerMetrics(lc fx.Lifecycle, version version.Version) *ConsumerMetrics

NewConsumerMetrics for prometheus.

func (*ConsumerMetrics) Collect

func (m *ConsumerMetrics) 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 (*ConsumerMetrics) Describe

func (m *ConsumerMetrics) 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 (*ConsumerMetrics) Handler

func (m *ConsumerMetrics) Handler(topic, channel string, h handler.Handler) handler.Handler

ServerHandler for prometheus.

type ProducerMetrics

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

ProducerMetrics for prometheus.

func NewProducerMetrics

func NewProducerMetrics(lc fx.Lifecycle, version version.Version) *ProducerMetrics

NewProducerMetrics for prometheus.

func (*ProducerMetrics) Collect

func (m *ProducerMetrics) 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 (*ProducerMetrics) Describe

func (m *ProducerMetrics) 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 (*ProducerMetrics) Producer

Producer for prometheus.

Jump to

Keyboard shortcuts

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