metric

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consume

type Consume interface {
	MessagesProcessedIncrement(topic string, partition int32, count int64)
}

func PrometheusConsume

func PrometheusConsume() Consume

type Produce

type Produce interface {
	MessagesProducedIncrement(topic string, partition int32, count int64)
}

func PrometheusProduce

func PrometheusProduce() Produce

type Prometheus

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

func GetPrometheus

func GetPrometheus() *Prometheus

func (*Prometheus) MessagesProcessedIncrement

func (p *Prometheus) MessagesProcessedIncrement(topic string, partition int32, count int64)

func (*Prometheus) MessagesProducedIncrement

func (p *Prometheus) MessagesProducedIncrement(topic string, partition int32, count int64)

func (*Prometheus) RetryCount

func (p *Prometheus) RetryCount(topic string, partition int32, trycount int64)

type Retry

type Retry interface {
	RetryCount(topic string, partition int32, trycount int64)
}

func PrometheusRetry

func PrometheusRetry() Retry

Jump to

Keyboard shortcuts

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