Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSink ¶
RegisterSink register a new sink to be used by kafka-offset
Types ¶
type BaseMetric ¶
BaseMetric base metrics for gauge and meter
type KafkaGauge ¶
type KafkaGauge struct { BaseMetric metrics.Gauge }
KafkaGauge gauge with metadata
func NewKafkaGauge ¶
func NewKafkaGauge(name, key string, meta map[string]any) KafkaGauge
NewKafkaGauge build new kafka gauge
func (KafkaGauge) Snapshot ¶
func (m KafkaGauge) Snapshot() metrics.Gauge
Snapshot get gauge snapshot and set Timestamp
type KafkaMeter ¶
type KafkaMeter struct { BaseMetric metrics.Meter }
KafkaMeter meter with metadata
func NewKafkaMeter ¶
func NewKafkaMeter(name, key string, meta map[string]any) KafkaMeter
NewKafkaMeter build a new Kafka Meter
func (KafkaMeter) Snapshot ¶
func (m KafkaMeter) Snapshot() metrics.Meter
Snapshot get meter snapshot and set Timestamp
type KafkaSource ¶
KafkaSource represent kafka cluster source metrics
func NewKafkaSource ¶
func NewKafkaSource(sink Sink) (*KafkaSource, error)
NewKafkaSource build new kafka source scraper
func (*KafkaSource) Run ¶
func (s *KafkaSource) Run() chan any
Run launch scrape and return stopCh to end scraping
Click to show internal directories.
Click to hide internal directories.