prometheus

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectStep

func SelectStep(queryRange time.Duration) time.Duration

SelectStep chooses an appropriate query step based on the time range

Types

type PrometheusService

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

PrometheusService collects Kafka metrics from a Prometheus server

func NewPrometheusService

func NewPrometheusService(promClient *client.PrometheusClient) *PrometheusService

NewPrometheusService creates a new Prometheus metrics service

func (*PrometheusService) CollectMetrics

func (s *PrometheusService) CollectMetrics(ctx context.Context, queryRange time.Duration) (*types.ProcessedClusterMetrics, error)

CollectMetrics queries Prometheus for all Kafka metrics over the specified range

Jump to

Keyboard shortcuts

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