kafka_metrics

package
v1.41.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerStorage

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

func NewConsumerStorage

func NewConsumerStorage(reg *metrics.Registry) *ConsumerStorage

func (*ConsumerStorage) IncCommitCount

func (c *ConsumerStorage) IncCommitCount(consumerGroup, topic string)

func (*ConsumerStorage) IncRetryCount

func (c *ConsumerStorage) IncRetryCount(consumerGroup, topic string)

func (*ConsumerStorage) ObserveConsumeDuration

func (c *ConsumerStorage) ObserveConsumeDuration(consumerGroup, topic string, t time.Duration)

func (*ConsumerStorage) ObserveConsumeMsgSize

func (c *ConsumerStorage) ObserveConsumeMsgSize(consumerGroup, topic string, size int)

type PublisherStorage

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

func NewPublisherStorage

func NewPublisherStorage(reg *metrics.Registry) *PublisherStorage

func (*PublisherStorage) IncPublishError

func (c *PublisherStorage) IncPublishError(topic string)

func (*PublisherStorage) ObservePublishDuration

func (c *PublisherStorage) ObservePublishDuration(topic string, t time.Duration)

func (*PublisherStorage) ObservePublishMsgSize

func (c *PublisherStorage) ObservePublishMsgSize(topic string, size int)

Jump to

Keyboard shortcuts

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