monitor

package
v0.0.0-...-b415832 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

	MaxOffset int64
	Offset    int64
	Lag       int64
	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.InfluxDB) (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) CombineTopicAndConsumer

func (client *KafkaClient) CombineTopicAndConsumer()

func (*KafkaClient) GetPartitionCount

func (client *KafkaClient) GetPartitionCount(topic string) int

func (*KafkaClient) MergeMaps

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

func (*KafkaClient) RefreshConsumerOffset

func (client *KafkaClient) RefreshConsumerOffset(msg *sarama.ConsumerMessage)

func (*KafkaClient) RefreshTopicMap

func (client *KafkaClient) RefreshTopicMap()

func (*KafkaClient) Start

func (client *KafkaClient) Start()

func (*KafkaClient) Stop

func (client *KafkaClient) Stop()

type TopicFullOffset

type TopicFullOffset struct {
	Cluster string
	Topic   string

	Offset    int64
	Timestamp int64
	// contains filtered or unexported fields
}

type TopicPartitionOffset

type TopicPartitionOffset struct {
	Cluster             string
	Topic               string
	Partition           int32
	Offset              int64
	Timestamp           int64
	Group               string
	TopicPartitionCount int
}

Jump to

Keyboard shortcuts

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