monitor

package
v0.0.0-...-875b2bb Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// we may use a fixed interval
	METRIC_FETCH_INTERVAL_SECOND = 10
	META_UPDATE_INTERVAL_SECOND  = 60
)

Functions

This section is empty.

Types

type BrokerTopicRequest

type BrokerTopicRequest struct {
	Result chan int
	Topic  string
}

type ConsumerFullOffset

type ConsumerFullOffset struct {
	Cluster   string
	Topic     string
	Group     string
	Timestamp int64
	// contains filtered or unexported fields
}

type ConsumerOffset

type ConsumerOffset struct {
	Cluster   string
	Topic     string
	Group     string
	Partition int32
	Offset    int64
	Timestamp int64
}

type Fetcher

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

func NewFetcher

func NewFetcher(cfg *config.Config) (f *Fetcher, err error)

func (*Fetcher) Start

func (f *Fetcher) Start()

func (*Fetcher) Stop

func (f *Fetcher) Stop()

type Importer

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

func NewImporter

func NewImporter(cfg *config.Config) (i *Importer, err error)

type KafkaClient

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

func NewKafkaClient

func NewKafkaClient(cfg *config.Config, cluster string) (*KafkaClient, error)

func (*KafkaClient) MergeMaps

func (client *KafkaClient) MergeMaps(topicOffsetMap map[string]map[int32]int64)

MergeMaps merge the offset of the topic

func (*KafkaClient) RefreshMetaData

func (client *KafkaClient) RefreshMetaData()

func (*KafkaClient) Start

func (client *KafkaClient) Start()

func (*KafkaClient) Stop

func (client *KafkaClient) Stop()

Stop the client

type LogOffset

type LogOffset struct {
	Logsize int64
	Offset  int64
}

type TopicPartitionOffset

type TopicPartitionOffset struct {
	Parition int32
	Offset   int64
}

Jump to

Keyboard shortcuts

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