reporter

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokersStats added in v1.1.1

func BrokersStats(stats, tags []string, statJSON, statsType string)

func ConsumptionDelay

func ConsumptionDelay(t time.Duration)

func GenerateReport

func GenerateReport()

func GetStats added in v1.1.1

func GetStats(stats, tags []string, statsJSON, level, statType string)

func GetValueFromJq added in v1.1.1

func GetValueFromJq(parseStr, statJSON string) ([]byte, error)

func Setup

func Setup(sr storeReporter, maxNLatency int, cfg config.Reporter, producerCfg config.Producer)

func TopLevelStats added in v1.1.1

func TopLevelStats(stats, tags []string, statJSON, statsType string)

Types

type Latency

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

func NewLatencyReporter

func NewLatencyReporter(topN int) *Latency

func (*Latency) Len

func (l *Latency) Len() int

func (*Latency) Less

func (l *Latency) Less(i, j int) bool

func (*Latency) Max

func (l *Latency) Max() uint32

func (*Latency) Min

func (l *Latency) Min() uint32

func (*Latency) Pop

func (l *Latency) Pop() uint32

func (*Latency) Push

func (l *Latency) Push(lt uint32)

func (*Latency) Swap

func (l *Latency) Swap(i, j int)

type LibrdKafkaStatsHandler added in v1.1.1

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

func NewlibrdKafkaStat added in v1.1.1

func NewlibrdKafkaStat(tags LibrdTags) LibrdKafkaStatsHandler

func (LibrdKafkaStatsHandler) HandleStats added in v1.1.1

func (stats LibrdKafkaStatsHandler) HandleStats(statJSON string)

type LibrdTags added in v1.1.3

type LibrdTags struct {
	ClusterName string
	Ack         string
	Topic       string
}

type Messages

type Messages struct {
	Lost     int64
	Sent     int64
	Received int64
}

type Report

type Report struct {
	Messages
	Time
}

func (*Report) String

func (r *Report) String() string

type Time

type Time struct {
	MinConsumption uint32
	MaxConsumption uint32
	AppRun         time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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