jmx

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JMXService

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

JMXService collects JMX metrics from Kafka brokers via Jolokia

func NewJMXService

func NewJMXService(endpoints []string, opts ...client.JolokiaOption) *JMXService

NewJMXService creates a new JMX service with Jolokia clients for each broker endpoint

func (*JMXService) CollectOverDuration

func (s *JMXService) CollectOverDuration(ctx context.Context, duration, interval time.Duration) (*types.ProcessedClusterMetrics, error)

CollectOverDuration collects JMX metrics over a specified duration at regular intervals and returns them in ProcessedClusterMetrics format for direct use by the UI.

Jump to

Keyboard shortcuts

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