Documentation ¶
Overview ¶
Package kafkametrics fetches Kafka broker metrics and posts events to supported metrics backends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrokerMetrics ¶
BrokerMetrics is a map of broker IDs to *Broker structs.
type Handler ¶
type Handler interface { GetMetrics() (BrokerMetrics, []error) PostEvent(*Event) error }
Handler requests broker metrics and posts events.
type Mock ¶
type Mock struct{}
Mock mocks tshe Handler interface.
func (*Mock) GetMetrics ¶
func (k *Mock) GetMetrics() (BrokerMetrics, []error)
GetMetrics mocks the GetMetrics function.
type NoResults ¶
type NoResults struct {
Message string
}
NoResults types are returned when incomplete broker metrics or metadata is returned.
type PartialResults ¶
type PartialResults struct {
Message string
}
PartialResults types are returned when incomplete broker metrics or metadata is returned.
func (*PartialResults) Error ¶
func (e *PartialResults) Error() string
Error implements the error interface for PartialResults.
Click to show internal directories.
Click to hide internal directories.