burrow_graphite

package
v0.0.0-...-7567da3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseGraphiteConnection

func CloseGraphiteConnection(graphite *graphite.Graphite) error

func GetGraphiteConnection

func GetGraphiteConnection(graphiteHost string, graphitePort int) (*graphite.Graphite, error)

func SendMetrics

func SendMetrics(graphite *graphite.Graphite, metrics []Metric) error

Types

type BurrowClient

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

func MakeBurrowClient

func MakeBurrowClient(baseUrl string) *BurrowClient

func (*BurrowClient) ClusterDetails

func (bc *BurrowClient) ClusterDetails(cluster string) (*ClusterDetailsResp, error)

func (*BurrowClient) ClusterTopicDetails

func (bc *BurrowClient) ClusterTopicDetails(cluster, topic string) (*ClusterTopicDetailsResp, error)

func (*BurrowClient) ConsumerGroupLag

func (bc *BurrowClient) ConsumerGroupLag(cluster, consumerGroup string) (*ConsumerGroupLagResp, error)

func (*BurrowClient) ConsumerGroupStatus

func (bc *BurrowClient) ConsumerGroupStatus(cluster, consumerGroup string) (*ConsumerGroupStatusResp, error)

func (*BurrowClient) ConsumerGroupTopicDetails

func (bc *BurrowClient) ConsumerGroupTopicDetails(cluster, consumerGroup, topic string) (*ConsumerGroupTopicDetailsResp, error)

func (*BurrowClient) HealthCheck

func (bc *BurrowClient) HealthCheck() (bool, error)

func (*BurrowClient) ListClusterTopics

func (bc *BurrowClient) ListClusterTopics(cluster string) (*TopicsResp, error)

func (*BurrowClient) ListClusters

func (bc *BurrowClient) ListClusters() (*ClustersResp, error)

func (*BurrowClient) ListConsumerTopics

func (bc *BurrowClient) ListConsumerTopics(cluster, consumerGroup string) (*TopicsResp, error)

func (*BurrowClient) ListConsumers

func (bc *BurrowClient) ListConsumers(cluster string) (*ConsumerGroupsResp, error)

type BurrowExporter

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

func MakeBurrowExporter

func MakeBurrowExporter(burrowUrl string, graphiteHost string, graphitePort int, interval int) *BurrowExporter

func (*BurrowExporter) Close

func (be *BurrowExporter) Close()

func (*BurrowExporter) Start

func (be *BurrowExporter) Start(ctx context.Context)

type BurrowResp

type BurrowResp struct {
	Error   bool   `json:"error"`
	Message string `json:"message"`
}

type ClusterDetails

type ClusterDetails struct {
	Brokers       []string `json:"brokers"`
	Zookeepers    []string `json:"zookeepers"`
	BrokerPort    int      `json:"broker_port"`
	ZookeeperPort int      `json:"zookeeper_port"`
	OffsetsTopic  string   `json:"offsets_topic"`
}

type ClusterDetailsResp

type ClusterDetailsResp struct {
	BurrowResp
	Cluster ClusterDetails `json:"cluster"`
}

type ClusterTopicDetailsResp

type ClusterTopicDetailsResp struct {
	BurrowResp
	Offsets []int64 `json:"offsets"`
}

type ClustersResp

type ClustersResp struct {
	BurrowResp
	Clusters []string `json:"clusters"`
}

type ConsumerGroupLag

type ConsumerGroupLag struct {
	Cluster        string      `json:"cluster"`
	Group          string      `json:"group"`
	Status         string      `json:"status"`
	Complete       float32     `json:"complete"`
	MaxLag         Partition   `json:"maxlag"`
	Partitions     []Partition `json:"partitions"`
	PartitionCount int32       `json:"partition_count"`
	TotalLag       int64       `json:"totallag"`
}

type ConsumerGroupLagResp

type ConsumerGroupLagResp struct {
	BurrowResp
	Status ConsumerGroupLag `json:"status"`
}

type ConsumerGroupStatus

type ConsumerGroupStatus struct {
	Cluster        string      `json:"cluster"`
	Group          string      `json:"group"`
	Status         string      `json:"status"`
	Complete       float32     `json:"complete"`
	MaxLag         Partition   `json:"maxlag"`
	Partitions     []Partition `json:"partitions"`
	PartitionCount int32       `json:"partition_count"`
	TotalLag       int64       `json:"totallag"`
}

type ConsumerGroupStatusResp

type ConsumerGroupStatusResp struct {
	BurrowResp
	Status ConsumerGroupStatus `json:"status"`
}

type ConsumerGroupTopicDetailsResp

type ConsumerGroupTopicDetailsResp struct {
	BurrowResp
	Offsets []int64 `json:"offsets"`
}

type ConsumerGroupsResp

type ConsumerGroupsResp struct {
	BurrowResp
	ConsumerGroups []string `json:"consumers"`
}

type Offset

type Offset struct {
	Offset    int64 `json:"offset"`
	Timestamp int64 `json:"timestamp"`
	Lag       int64 `json:"lag"`
}

type Partition

type Partition struct {
	Topic     string `json:"topic"`
	Partition int32  `json:"partition"`
	Status    string `json:"status"`
	Start     Offset `json:"start"`
	End       Offset `json:"end"`
}

type TopicsResp

type TopicsResp struct {
	BurrowResp
	Topics []string `json:"topics"`
}

Jump to

Keyboard shortcuts

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