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 Broker ¶
type Broker struct { // Kafka broker ID. ID int // Kafka broker hostname. Host string // Kafka broker instance type. InstanceType string // Network tx, window avg. NetTX float64 // Network rx, window avg. NetRX float64 }
Broker holds metrics and metadata for a Kafka broker.
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 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.