metrics

package
v0.4.6-debug Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// debugging period
	OneHourPeriodInSeconds int32 = 60 * 60      // 60 seconds * 60 minutes
	DailyPeriodInSeconds   int32 = 60 * 60 * 24 // 60 seconds * 60 minutes * 24 hours

	Last24Hours TimePeriod = "last24Hours"
	LastWeek    TimePeriod = "lastWeek"
	LastMonth   TimePeriod = "lastMonth"
	LastYear    TimePeriod = "lastYear"
)

Variables

This section is empty.

Functions

func GetTimeWindow added in v0.4.0

func GetTimeWindow(endTime time.Time, desiredPeriod TimePeriod) (types.CloudWatchTimeWindow, error)

GetTimeWindow calculates CloudWatch time windows for different periods based on a end time

Types

type MetricService

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

func NewMetricService

func NewMetricService(client *cloudwatch.Client) *MetricService

func (*MetricService) ProcessProvisionedCluster added in v0.4.0

func (ms *MetricService) ProcessProvisionedCluster(ctx context.Context, cluster kafkatypes.Cluster, followerFetching bool, timeWindow types.CloudWatchTimeWindow) (*types.ClusterMetrics, error)

ProcessProvisionedCluster processes metrics for provisioned aggregated across all brokers in a cluster

func (*MetricService) ProcessServerlessCluster added in v0.4.0

func (ms *MetricService) ProcessServerlessCluster(ctx context.Context, cluster kafkatypes.Cluster, timeWindow types.CloudWatchTimeWindow) (*types.ClusterMetrics, error)

ProcessServerlessCluster processes metrics for serverless aggregated across all topics in a cluster

type TimePeriod added in v0.4.0

type TimePeriod string

Jump to

Keyboard shortcuts

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